]> git.phdru.name Git - mimedecode.git/blob - .github/workflows/run-tests.yaml
Tests, CI: Run tests with Python 3.11
[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", "3.10", "3.11", "pypy-2.7"]
11
12     name: Python ${{ matrix.python-version }}
13     runs-on: ubuntu-latest
14
15     steps:
16
17       # Setup Python/pip
18       - uses: actions/checkout@v2
19       - uses: actions/setup-python@v4
20         with:
21           python-version: ${{ matrix.python-version }}
22       - name: Cache pip
23         uses: actions/cache@v3
24         with:
25           # This path is specific to Linux/Unix
26           path: ~/.cache/pip
27           key: ${{ runner.os }}-pip
28
29       # Setup tox
30       - name: Install dependencies
31         run: |
32           python --version
33           python -m pip install --upgrade pip setuptools wheel
34           pip --version
35           pip install --upgrade virtualenv tox tox-gh-actions
36
37       - name: Run tox targets for ${{ matrix.python-version }}
38         run: |
39           tox --version
40           tox