| 1 | name: Python lint and tests |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | runs-on: ubuntu-latest |
| 8 | strategy: |
| 9 | fail-fast: false |
| 10 | max-parallel: 5 |
| 11 | matrix: |
| 12 | python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] |
| 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v4 |
| 16 | - name: Set up Python ${{ matrix.python-version }} |
| 17 | uses: actions/setup-python@v5 |
| 18 | with: |
| 19 | python-version: ${{ matrix.python-version }} |
| 20 | - name: Install dependencies |
| 21 | run: | |
| 22 | python -m pip install --upgrade uv tox tox-uv |
| 23 | - name: Test with tox |
| 24 | run: tox -e py |
| 25 | - name: Run linters |
| 26 | run: tox -e lint |