| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
| include: | |
| - python-version: '3.12' | |
| note: with-style-and-docs-checks | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install tox | |
| run: pip install tox tox-gh-actions | |
| - name: Running tests | |
| run: tox | |