Merge pull request #398 from mnot/dependabot/github_actions/sigstore/… #462
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: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 2 | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: "true" | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 18 | |
| - name: Cache playwright binaries | |
| uses: actions/cache@v5 | |
| id: playwright-cache | |
| with: | |
| path: | | |
| ~/.cache/ms-playwright | |
| key: cache-playwright-linux-1.22.0 | |
| - name: Install Playwright | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: npx playwright install --with-deps | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache venv | |
| uses: actions/cache@v5 | |
| with: | |
| path: .venv | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ hashFiles('pyproject.toml') }} | |
| - name: Set up venv | |
| run: make venv | |
| - name: Typecheck | |
| run: make typecheck | |
| - name: Lint | |
| run: make lint | |
| - name: WebUI Test | |
| run: make test_webui | |
| - name: Upload screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: webui-screenshots | |
| path: fail_*.png | |
| if-no-files-found: ignore |