-
Notifications
You must be signed in to change notification settings - Fork 88
62 lines (54 loc) · 1.46 KB
/
test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Unit tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Python ${{ matrix.env.python }} | ${{ matrix.env.TOXENV }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
env:
- python: 3.8
TOXENV: py38-django32
- python: 3.9
TOXENV: py39-django32
- python: 3.9
TOXENV: py39-django42
- python: '3.10'
TOXENV: py310-django32
- python: '3.10'
TOXENV: py310-django42
- python: '3.10'
TOXENV: py310-django50
- python: '3.10'
TOXENV: py310-django51
- python: '3.11'
TOXENV: py311-django42
- python: '3.11'
TOXENV: py311-django50
- python: '3.11'
TOXENV: py311-django51
- python: '3.12'
TOXENV: py312-django42
- python: '3.12'
TOXENV: py312-django50
- python: '3.12'
TOXENV: py312-django51
- python: '3.13'
TOXENV: py313-django51
steps:
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.env.python }}
- name: Install tox
run: pip install tox
- name: Run Tests
env:
TOXENV: django${{ matrix.env.TOXENV }}
run: tox -e ${{ matrix.env.TOXENV }}