| 1 | name: unit_tests |
| 2 | on: [push, pull_request] |
| 3 | |
| 4 | jobs: |
| 5 | tests: |
| 6 | name: ${{ matrix.name }} |
| 7 | runs-on: ${{ matrix.os }} |
| 8 | strategy: |
| 9 | fail-fast: false |
| 10 | matrix: |
| 11 | include: |
| 12 | - {name: Linux36, python: '3.6', os: ubuntu-latest, tox: py36} |
| 13 | - {name: Linux37, python: '3.7', os: ubuntu-latest, tox: py37} |
| 14 | - {name: Linux38, python: '3.8', os: ubuntu-latest, tox: py38} |
| 15 | - {name: Linux39, python: '3.9', os: ubuntu-latest, tox: py39} |
| 16 | - {name: Linux310, python: '3.10', os: ubuntu-latest, tox: py310} |
| 17 | - {name: Linux311, python: '3.11.0-beta.5', os: ubuntu-latest, tox: py311} |
| 18 | - {name: Style, python: '3.10', os: ubuntu-latest, tox: style} |
| 19 | steps: |
| 20 | - uses: actions/checkout@v2 |
| 21 | - uses: actions/setup-python@v2 |
| 22 | with: |
| 23 | python-version: ${{ matrix.python }} |
| 24 | - run: pip install tox |
| 25 | - name: Run app tox tests |
| 26 | run: | |
| 27 | tox -e ${{ matrix.tox }} |