-
Notifications
You must be signed in to change notification settings - Fork 28
71 lines (60 loc) · 1.53 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: test
on: [pull_request, push]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox -e lint
run: tox
env:
TOXENV: lint
test:
name: unittests
runs-on: ubuntu-latest
strategy:
matrix:
toxenv:
- py36-dj22
- py36-dj32
- py39-dj22
- py39-dj32
- py39-dj40
include:
- toxenv: py36-dj22
python-version: 3.6
- toxenv: py36-dj32
python-version: 3.6
- toxenv: py39-dj22
python-version: 3.9
- toxenv: py39-dj32
python-version: 3.9
- toxenv: py39-dj40
python-version: 3.9
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox coveralls
- name: Run tox
run: |
tox
coveralls
env:
TOXENV: ${{ matrix.toxenv }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}