ci(desktop): quote the apt options through an array #1
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: Python CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package and test tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[test]" | |
| - name: Run tests | |
| run: | | |
| python -m pip check | |
| python -m pytest -q | |
| windows-lifecycle: | |
| name: Windows lifecycle locks and platform isolation | |
| runs-on: windows-2022 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install package and test tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[test]" | |
| - name: Verify shared leases, startup recovery, and scheduler leadership | |
| run: >- | |
| python -m pytest -q | |
| tests/application/test_application_lease.py | |
| tests/application/test_automation_scheduler_leadership.py | |
| tests/application/test_session_deletion_service.py | |
| tests/application/test_execution_coordinator.py | |
| # These suites carry Windows-gated cases (the Job Object backend) that | |
| # the ubuntu job can only skip. This is the sole place they actually | |
| # execute. | |
| - name: Verify Job Object sandbox | |
| run: >- | |
| python -m pytest -q | |
| tests/test_harness_sandbox.py | |
| tests/test_exec_sandbox_wiring.py | |
| package: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Build distributions | |
| run: | | |
| python -m pip install --upgrade pip build packaging twine | |
| python -m build | |
| python -m twine check dist/* | |
| - name: Verify distribution metadata and installed runtime | |
| run: python scripts/verify_python_distribution.py --dist-dir dist | |
| - name: Upload distributions | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-distributions | |
| path: dist/ |