| 1 |
name: Tests |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- main |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- main |
| 9 |
jobs: |
| 10 |
tests: |
| 11 |
name: ${{ matrix.name }} |
| 12 |
runs-on: ubuntu-latest |
| 13 |
strategy: |
| 14 |
fail-fast: false |
| 15 |
matrix: |
| 16 |
include: |
| 17 |
- {name: '3.10', python: '3.10', tox: py310} |
| 18 |
- {name: '3.9', python: '3.9', tox: py39} |
| 19 |
- {name: '3.8', python: '3.8', tox: py38} |
| 20 |
- {name: '3.7', python: '3.7', tox: py37} |
| 21 |
- {name: 'PyPy', python: 'pypy-3.8', tox: pypy38} |
| 22 |
- {name: 'Minimum Versions', python: '3.9', tox: py-min} |
| 23 |
steps: |
| 24 |
- uses: actions/checkout@v3 |
| 25 |
- uses: actions/setup-python@v4 |
| 26 |
with: |
| 27 |
python-version: ${{ matrix.python }} |
| 28 |
cache: 'pip' |
| 29 |
cache-dependency-path: 'requirements/*.txt' |
| 30 |
- name: update pip |
| 31 |
run: | |
| 32 |
pip install -U wheel |
| 33 |
pip install -U setuptools |
| 34 |
python -m pip install -U pip |
| 35 |
- run: pip install -r requirements/ci-tests.txt |
| 36 |
- run: tox -e ${{ matrix.tox }} |
| 37 |
- run: coveralls --service=github |
| 38 |
env: |
| 39 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 40 |
if: ${{ matrix.tox != 'style' }} |