Build bounded Detail decode and cache core (#893) #216
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main, edit-base] | |
| pull_request: | |
| branches: [main, edit-base] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| cache-dependency-path: | | |
| pyproject.toml | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| libegl1 libgl1 libxkbcommon0 libpulse0 | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[test]" | |
| - name: Run tests | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| NUMBA_DISABLE_JIT: "1" | |
| run: | | |
| python tools/check_architecture.py | |
| python -m pytest tests/ \ | |
| --ignore=tests/gui \ | |
| --ignore=tests/ui \ | |
| --tb=short -v | |
| startup-contracts: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install Linux system dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libpulse0 | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[test]" | |
| - name: Run startup contracts with normal interpreter shutdown | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| NUMBA_DISABLE_JIT: "1" | |
| run: >- | |
| python -m pytest -q | |
| tests/application/test_bootstrap_settings.py | |
| tests/application/test_library_probe.py | |
| tests/application/test_library_session.py | |
| tests/application/test_runtime_context.py | |
| tests/gui/test_main.py | |
| tests/gui/test_startup_orchestrator.py | |
| tests/gui/test_gui_startup_job_queue.py | |
| tests/gui/test_startup_shutdown_smoke.py | |
| tests/test_library_bind_double_scan.py | |
| tests/test_startup_benchmark.py | |
| tests/test_startup_profile.py | |
| tests/test_appimage_packaging.py | |
| tests/test_macos_detection_report.py | |
| detail-core-contracts: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install Linux system dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends libegl1 libgl1 libxkbcommon0 libpulse0 | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[test]" | |
| - name: Run Detail core contracts | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| NUMBA_DISABLE_JIT: "1" | |
| run: >- | |
| python -m pytest -q | |
| tests/gui/test_detail_profile.py | |
| tests/gui/test_detail_pipeline.py | |
| tests/gui/test_detail_request_scheduler.py | |
| tests/gui/test_detail_decode_backend.py | |
| tests/gui/test_detail_surface_cache.py | |
| tests/gui/test_detail_render_coordinator.py |