-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.17 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
pull_request:
jobs:
test-sqlite:
name: py-${{ matrix.python }} dj-${{ matrix.django }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Django LTS on Python oldest to latest - dj3.2, py3.9
- python: 3.9
django: 3.2
# Django supported on latest LTS - dj4.2, py3.11
- python: 3.11
django: 4.2
# Django supported on latest LTS - dj5.1, py3.12
- python: 3.12
django: 5.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install "django~=${{ matrix.django }}.0"
- name: Set Python path
run: |
echo "PYTHONPATH=." >> $GITHUB_ENV
- name: Test
run: |
pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: ${{ matrix.python }}-${{ matrix.django }}