]> git.phdru.name Git - mimedecode.git/blob - .github/workflows/run-tests.yaml
CI: Github Actions
[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]
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: Install dependencies
21         run: |
22           python --version
23           python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
24           pip --version
25           python -m pip --version
26           python -m pip install --upgrade virtualenv tox tox-gh-actions
27       - name: Run tox targets for ${{ matrix.python-version }}
28         run: python -m tox