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