Progress, a folded transcript, and links between the graph and the log #8
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
| # macOS — one Python version, full suite including the browser render tests. | |
| # | |
| # A single version on purpose: macOS runners cost ten times a Linux minute, and the | |
| # Python-version axis is already covered on Linux. What this run is actually for is | |
| # the platform axis — arm64, a different SQLite build, a different browser build. | |
| name: macOS | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| test: | |
| # Explicit, so branch protection can require this exact context. | |
| name: macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: pyproject.toml | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Playwright version | |
| id: pw | |
| run: echo "version=$(python -c 'import playwright; print(playwright.__version__)')" >> "$GITHUB_OUTPUT" | |
| - name: Cache Playwright browsers | |
| id: pw-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/Library/Caches/ms-playwright | |
| key: pw-${{ runner.os }}-${{ steps.pw.outputs.version }} | |
| - name: Install browser | |
| run: python -m playwright install chromium --only-shell | |
| if: steps.pw-cache.outputs.cache-hit != 'true' | |
| - name: Lint | |
| run: python -m ruff check . | |
| - name: Test | |
| run: python -m pytest tests/ -q -m "not ollama" | |
| - name: Check documented numbers | |
| run: python scripts/check_numbers.py |