]> git.phdru.name Git - mimedecode.git/blob - .github/workflows/run-tests.yaml
4bf76a0bb6873fd76eea0e220fd41bf82f5045fa
[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
18       # Setup Python/pip
19       - uses: actions/checkout@v2
20       - uses: actions/setup-python@v2
21         with:
22           python-version: ${{ matrix.python-version }}
23       - name: Cache pip
24         uses: actions/cache@v2
25         with:
26           # This path is specific to Linux/Unix
27           path: ~/.cache/pip
28           key: ${{ runner.os }}-pip
29
30       # Setup tox
31       - name: Install dependencies
32         run: |
33           python --version
34           python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
35           pip --version
36           pip install --upgrade virtualenv tox tox-gh-actions
37
38       - name: Run tox targets for ${{ matrix.python-version }}
39         run: tox