Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
8 runs-on: ubuntu-latest
9 strategy:
10 fail-fast: false
11 matrix:
12 python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
13 django-version: ['3.2', '4.0', '4.1', '4.2', '5.0']
14
15 steps:
16 - uses: actions/checkout@v4
17
18 - name: Set up Python ${{ matrix.python-version }}
19 uses: actions/setup-python@v4
20 with:
21 python-version: ${{ matrix.python-version }}
22 cache: 'pip'
23
24 - name: Install dependencies
25 run: |
26 python -m pip install --upgrade pip
27 python -m pip install pytest coverage
28 python -m pip install tox tox-gh-actions
29
30 - name: Tox tests
31 run: tox -v
32 env:
33 DJANGO: ${{ matrix.django-version }}
34
35 - name: Upload coverage
36 uses: codecov/codecov-action@v3
37 with:
38 name: Python ${{ matrix.python-version }}