| 1 | name: CI |
| 2 | on: |
| 3 | push: |
| 4 | branches: master |
| 5 | pull_request: |
| 6 | jobs: |
| 7 | test: |
| 8 | runs-on: ubuntu-latest |
| 9 | name: Test (Python ${{ matrix.python-version }}) |
| 10 | strategy: |
| 11 | matrix: |
| 12 | python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 13 | steps: |
| 14 | - uses: actions/checkout@v3 |
| 15 | - name: Set up Python |
| 16 | uses: actions/setup-python@v4 |
| 17 | with: |
| 18 | python-version: "${{ matrix.python-version }}" |
| 19 | - name: Install tox |
| 20 | run: | |
| 21 | python -m pip install --upgrade pip |
| 22 | pip install tox tox-gh-actions |
| 23 | - name: Run tests |
| 24 | run: tox |
| 25 |