⬆️ update the dev dependencies #1168
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: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| env: | |
| UV_LOCKED: 1 | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: scientific-python/repo-review@v0.12.1 | |
| with: | |
| plugins: sp-repo-review | |
| - name: markdownlint | |
| uses: DavidAnson/markdownlint-cli2-action@v19 | |
| with: | |
| config: ".markdownlint.yaml" | |
| globs: "**/*.md" | |
| - name: typos | |
| uses: crate-ci/typos@master | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| activate-environment: true | |
| python-version: "3.13" | |
| - name: ruff | |
| run: | | |
| uv run ruff check --output-format=github | |
| uv run ruff format --check | |
| - name: add-trailing-commas | |
| run: uvx add-trailing-comma **/*.py **/*.pyi | |
| # mypy_primer expects pyright to pass | |
| - name: pyright | |
| uses: jakebailey/pyright-action@v2 | |
| generate-matrix: | |
| name: Generate Test Matrix | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Generate Matrix | |
| id: set-matrix | |
| shell: bash | |
| run: | | |
| matrix=$(uv run scripts/generate_matrix.py | jq -c) | |
| echo "matrix=$matrix" >> $GITHUB_OUTPUT | |
| typetest: | |
| needs: generate-matrix | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: setup uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: basedpyright | |
| run: uv run --with="numpy==${{ matrix.numpy }}" basedpyright | |
| - name: basedmypy | |
| run: > | |
| uv run --with="numpy==${{ matrix.numpy }}" | |
| mypy | |
| --tb | |
| --hide-error-context | |
| --hide-error-code-links | |
| . | |
| - name: stubtest | |
| run: > | |
| uv run --with="numpy==${{ matrix.numpy }}" --no-editable | |
| stubtest | |
| --tb | |
| --ignore-unused-allowlist | |
| --allowlist=.mypyignore | |
| --mypy-config-file=pyproject.toml | |
| scipy |