Repository navigation
fix: restore four Project sync workers #6977
Workflow file for this run
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: Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - 'README*.md' | |
| - 'changelogs/**' | |
| - 'dashboard/**' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| unit-tests: | |
| name: Run pytest suite (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| # The Windows lane stays best-effort for now: the suite still has | |
| # pre-existing Windows-specific failures there. Promote to blocking | |
| # once those tests are fixed. | |
| continue-on-error: ${{ matrix.os == 'windows-latest' }} | |
| defaults: | |
| run: | |
| # Windows runners default to pwsh; use bash so the same steps and | |
| # test script work on all three platforms. | |
| shell: bash | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| - name: Install Linux sandbox dependency | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y bubblewrap | |
| - name: Enable and verify Linux sandbox execution | |
| if: runner.os == 'Linux' | |
| run: | | |
| # Ubuntu's AppArmor policy blocks user-namespace capabilities by default. | |
| # Allow them on this ephemeral runner so the real sandbox tests can run. | |
| if [ -f /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then | |
| sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | |
| fi | |
| bwrap --unshare-all --ro-bind / / /bin/true | |
| - name: Verify macOS sandbox dependency | |
| if: runner.os == 'macOS' | |
| run: test -x /usr/bin/sandbox-exec | |
| - name: Run tests | |
| run: | | |
| chmod +x scripts/run_pytests_ci.sh | |
| bash ./scripts/run_pytests_ci.sh ./tests |