Repository navigation
Row JSON now returns {"row": {...}} #975
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: Playwright | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium, firefox, webkit] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| allow-prereleases: true | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Cache uv | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/uv | |
| key: ${{ runner.os }}-py3.14-uv-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-py3.14-uv- | |
| # Playwright downloads a different WebKit build for each Ubuntu release, | |
| # so the browser cache is keyed on the release (e.g. ubuntu-26.04) to | |
| # avoid restoring a build linked against another release's libraries. | |
| - name: Get OS release | |
| id: os | |
| run: echo "release=$(. /etc/os-release && echo "${ID}-${VERSION_ID}")" >> "$GITHUB_OUTPUT" | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.cache/ms-playwright/ | |
| key: ${{ runner.os }}-${{ steps.os.outputs.release }}-playwright-${{ matrix.browser }}-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ steps.os.outputs.release }}-playwright-${{ matrix.browser }}- | |
| - name: Install uv | |
| run: python -m pip install uv | |
| - name: Install dependencies | |
| run: uv sync --group dev --group playwright | |
| - name: Install ${{ matrix.browser }} | |
| run: uv run --group dev --group playwright playwright install --with-deps ${{ matrix.browser }} | |
| - name: Run Playwright tests | |
| run: uv run --group dev --group playwright pytest tests/test_playwright.py --playwright --browser ${{ matrix.browser }} |