Repository navigation
Devel PRs use the max-models devel branches, main PRs PyPI only #99
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: Static analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - devel | |
| pull_request: | |
| branches: | |
| - main | |
| - devel | |
| env: | |
| # A PR to main or a push to main (the release) uses PyPI versions only; devel uses the | |
| # devel branches from [tool.uv.sources]. | |
| UV_NO_SOURCES: ${{ (github.base_ref || github.ref_name) == 'main' }} | |
| jobs: | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Lint | |
| run: uvx ruff check . | |
| - name: Check formatting | |
| run: uvx ruff format --check . | |
| pyright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install project | |
| run: uv sync --extra dev | |
| - name: Type check | |
| run: uv run pyright src/ | |
| readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Check that README.md is rendered from README.qmd | |
| run: make readme-check |