1
+ ---
1
2
name : Python Tests
2
3
3
4
on : [push]
7
8
format :
8
9
runs-on : ubuntu-latest
9
10
steps :
10
- - uses : actions/checkout@v2
11
- - name : Set up Python 3.7
12
- uses : actions/setup-python@v1
13
- with :
14
- python-version : 3.7
15
- - name : Install dependencies
16
- run : pip install tox
17
- - name : Validate formatting
18
- run : tox -e format
11
+ - uses : actions/checkout@v2
12
+ - name : Set up Python 3.7
13
+ uses : actions/setup-python@v1
14
+ with :
15
+ python-version : 3.7
16
+ - name : Install dependencies
17
+ run : pip install tox
18
+ - name : Validate formatting
19
+ run : tox -e format
19
20
20
21
test :
21
22
runs-on : ubuntu-latest
22
23
strategy :
23
24
max-parallel : 4
24
25
matrix :
25
26
tox_env :
26
- - py36-dj20-wt23
27
- - py36-dj21-wt24
28
- - py37-dj21-wt24
29
- - py36-dj22-wt25
30
- - py36-dj22-wt26
31
- - py36-dj22-wt27
32
- - py36-dj22-wt28
33
- - py37-dj22-wt25
34
- - py37-dj22-wt26
35
- - py37-dj22-wt27
36
- - py37-dj22-wt28
37
- - py38-dj22-wt25
38
- - py38-dj22-wt26
39
- - py38-dj22-wt27
40
- - py38-dj22-wt28
27
+ - py36-dj20-wt23
28
+ - py36-dj21-wt24
29
+ - py37-dj21-wt24
30
+ - py36-dj22-wt25
31
+ - py36-dj22-wt26
32
+ - py36-dj22-wt27
33
+ - py36-dj22-wt28
34
+ - py37-dj22-wt25
35
+ - py37-dj22-wt26
36
+ - py37-dj22-wt27
37
+ - py37-dj22-wt28
38
+ - py38-dj22-wt25
39
+ - py38-dj22-wt26
40
+ - py38-dj22-wt27
41
+ - py38-dj22-wt28
41
42
include :
42
43
- python-version : 3.6
43
44
tox_env : py36-dj20-wt23
44
45
- python-version : 3.6
45
46
tox_env : py36-dj21-wt24
46
47
- python-version : 3.7
47
- tox_env : py37-dj21-wt24
48
+ tox_env : py37-dj21-wt24
48
49
- python-version : 3.6
49
50
tox_env : py36-dj22-wt25
50
51
- python-version : 3.6
@@ -70,42 +71,42 @@ jobs:
70
71
- python-version : 3.8
71
72
tox_env : py38-dj22-wt28
72
73
steps :
73
- - uses : actions/checkout@v2
74
- - name : Set up Python ${{ matrix.python-version }}
75
- uses : actions/setup-python@v1
76
- with :
77
- python-version : ${{ matrix.python-version }}
78
- - name : Install dependencies
79
- run : |
80
- python -m pip install --upgrade pip
81
- pip install tox tox-gh-actions
82
- - name : Test with tox
83
- run : tox -e ${{ matrix.tox_env }}
84
- - name : Prepare artifacts
85
- run : mkdir -p .coverage-data && mv .coverage.* .coverage-data/
86
- - uses : actions/upload-artifact@master
87
- with :
88
- name : coverage-data
89
- path : .coverage-data/
74
+ - uses : actions/checkout@v2
75
+ - name : Set up Python ${{ matrix.python-version }}
76
+ uses : actions/setup-python@v1
77
+ with :
78
+ python-version : ${{ matrix.python-version }}
79
+ - name : Install dependencies
80
+ run : |
81
+ python -m pip install --upgrade pip
82
+ pip install tox tox-gh-actions
83
+ - name : Test with tox
84
+ run : tox -e ${{ matrix.tox_env }}
85
+ - name : Prepare artifacts
86
+ run : mkdir -p .coverage-data && mv .coverage.* .coverage-data/
87
+ - uses : actions/upload-artifact@master
88
+ with :
89
+ name : coverage-data
90
+ path : .coverage-data/
90
91
91
92
coverage :
92
93
runs-on : ubuntu-latest
93
94
needs : [test]
94
95
steps :
95
- - uses : actions/checkout@v2
96
- - uses : actions/download-artifact@master
97
- with :
98
- name : coverage-data
99
- path : .
100
- - name : Set up Python 3.7
101
- uses : actions/setup-python@v1
102
- with :
103
- python-version : 3.7
104
- - name : Install dependencies
105
- run : |
106
- python -m pip install --upgrade pip
107
- pip install tox
108
- - name : Prepare Coverage report
109
- run : tox -e coverage-report
110
- - name : Upload to codecov
111
-
96
+ - uses : actions/checkout@v2
97
+ - uses : actions/download-artifact@master
98
+ with :
99
+ name : coverage-data
100
+ path : .
101
+ - name : Set up Python 3.7
102
+ uses : actions/setup-python@v1
103
+ with :
104
+ python-version : 3.7
105
+ - name : Install dependencies
106
+ run : |
107
+ python -m pip install --upgrade pip
108
+ pip install tox
109
+ - name : Prepare Coverage report
110
+ run : tox -e coverage-report
111
+ - name : Upload to codecov
112
+
0 commit comments