| 1 | name: Tests & linting with tox |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | |
| 9 | jobs: |
| 10 | build: |
| 11 | runs-on: ubuntu-latest |
| 12 | strategy: |
| 13 | max-parallel: 5 |
| 14 | matrix: |
| 15 | python-version: [3.9, "3.10", 3.11, 3.12, 3.13] |
| 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v1 |
| 19 | - name: Set up Python ${{ matrix.python-version }} |
| 20 | uses: actions/setup-python@v2 |
| 21 | with: |
| 22 | python-version: ${{ matrix.python-version }} |
| 23 | - name: Install dependencies |
| 24 | run: | |
| 25 | python -m pip install --upgrade pip |
| 26 | pip install tox tox-gh-actions pytest |
| 27 | |
| 28 | - name: Test with tox |
| 29 | run: | |
| 30 | tox -e py |
| 31 | tox -e lint |