Drop Python 3.9 and add 3.14 (#80) #156
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: build | |
| on: [push] | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # hatch-vcs needs tags to derive the version | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: "3.11" | |
| - name: install dependencies | |
| run: uv sync | |
| - name: lint with pylint | |
| run: make lint | |
| - name: check types with mypy | |
| run: make typecheck | |
| - name: check formatting with black | |
| run: make format | |
| - name: check import sorting with isort | |
| run: make isort | |
| - name: check Python syntax upgrades with pyupgrade | |
| run: make pyupgrade | |
| - name: get test coverage | |
| run: make test | |
| - uses: codecov/codecov-action@v7 | |
| with: | |
| files: ./coverage.xml | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 # hatch-vcs needs tags to derive the version | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: run tests | |
| run: uv run pytest . |