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