Full PEP 517 + PEP 639 #44
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/ci.yml" | |
| - "docs/**" | |
| - ".readthedocs.yaml" | |
| - "pyproject.toml" | |
| - "setup.cfg" | |
| - "**/*.py" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/ci.yml" | |
| - "docs/**" | |
| - ".readthedocs.yaml" | |
| - "pyproject.toml" | |
| - "mypy.ini" | |
| - "**/*.py" | |
| concurrency: | |
| # Cancel previous runs for the same PR | |
| # Don't cancel successive pushes to master | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| mypy: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest, macos-latest] | |
| python-version: ["3.10"] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: true | |
| - run: uv sync --locked | |
| - run: mypy . --python-version=${{ matrix.python-version }} | |
| sphinx: | |
| runs-on: ubuntu-22.04 # Keep in sync with build.os in .readthedocs.yaml | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: "3.11" # Keep in sync with build.tools.python in .readthedocs.yaml | |
| activate-environment: true | |
| - run: uv sync --locked --no-default-groups --group=docs | |
| - name: Build docs | |
| # TODO: Add --fail-on-warning, but still too many warnings right now | |
| run: sphinx-build --keep-going -b html docs/source docs/_build/html |