-
Notifications
You must be signed in to change notification settings - Fork 88
71 lines (64 loc) · 1.81 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
63
64
65
66
67
68
69
70
71
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.7
TOXENV: py37-django21-drf3
- python: 3.7
TOXENV: py37-django22-drf3
- python: 3.7
TOXENV: py37-django30-drf3
- python: 3.8
TOXENV: py38-django21-drf3
- python: 3.8
TOXENV: py38-django22-drf3
- python: 3.8
TOXENV: py38-django30-drf3
- python: 3.8
TOXENV: py38-django31-drf3
- python: 3.8
TOXENV: py38-django32-drf3
- python: 3.9
TOXENV: py39-django22-drf3
- python: 3.9
TOXENV: py39-django30-drf3
- python: 3.9
TOXENV: py39-django31-drf3
- python: 3.9
TOXENV: py39-django32-drf3
- python: 3.9
TOXENV: py39-django40-drf3
- python: 3.9
TOXENV: py39-django41-drf3
- python: 3.9
TOXENV: py39-django42-drf3
- python: '3.10'
TOXENV: py310-django32-drf3
- python: '3.10'
TOXENV: py310-django40-drf3
- python: '3.10'
TOXENV: py310-django41-drf3
- python: '3.10'
TOXENV: py310-django42-drf3
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
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 }}