Merge pull request #128 from crdbrd/fix-pyright-in-ci #82
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: hynek/build-and-inspect-python-package@v2 | |
| tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "Docs" | |
| python: "3.14" | |
| tox: docs | |
| - name: "mypy" | |
| python: "3.14" | |
| tox: mypy | |
| - name: "pyright" | |
| python: "3.14" | |
| tox: pyright | |
| - name: "pytest (3.10)" | |
| python: "3.10" | |
| tox: "3.10" | |
| - name: "pytest (3.11)" | |
| python: "3.11" | |
| tox: "3.11" | |
| - name: "pytest (3.12)" | |
| python: "3.12" | |
| tox: "3.12" | |
| - name: "pytest (3.13)" | |
| python: "3.13" | |
| tox: "3.13" | |
| - name: "pytest (3.14)" | |
| python: "3.14" | |
| tox: "3.14" | |
| coverage: true | |
| - name: "ruff format" | |
| python: "3.14" | |
| tox: ruff-format | |
| - name: "ruff lint" | |
| python: "3.14" | |
| tox: ruff-lint | |
| - name: "ty" | |
| python: "3.14" | |
| tox: ty | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - run: uv tool install tox --with tox-uv | |
| - run: tox -e ${{ matrix.tox }} | |
| if: ${{ ! matrix.coverage }} | |
| - run: tox -e ${{ matrix.tox }} -- --cov-report=xml | |
| if: ${{ matrix.coverage }} | |
| - uses: codecov/codecov-action@v5 | |
| if: ${{ matrix.coverage }} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |