]> git.phdru.name Git - mimedecode.git/blob - .github/workflows/run-tests.yaml
CI(GHActions): fail no so fast
[mimedecode.git] / .github / workflows / run-tests.yaml
1 name: Run tests
2
3 on: [push, pull_request]
4
5 jobs:
6   run-tests:
7
8     strategy:
9       fail-fast: false
10       matrix:
11         python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 'pypy-2.7']
12
13     name: Python ${{ matrix.python-version }}
14     runs-on: ubuntu-latest
15
16     steps:
17       - uses: actions/checkout@v2
18       - uses: actions/setup-python@v2
19         with:
20           python-version: ${{ matrix.python-version }}
21       - name: Cache pip
22         uses: actions/cache@v2
23         with:
24           # This path is specific to Linux/Unix
25           path: ~/.cache/pip
26           key: ${{ runner.os }}-pip
27       - name: Install dependencies
28         run: |
29           python --version
30           python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
31           pip --version
32           pip install --upgrade virtualenv tox tox-gh-actions
33       - name: Run tox targets for ${{ matrix.python-version }}
34         run: python -m tox