@@ -16,6 +16,9 @@ concurrency:
16
16
permissions :
17
17
contents : read
18
18
19
+ env :
20
+ LINTING_PYTHON_VERSION : 3.7
21
+
19
22
jobs :
20
23
mypy :
21
24
runs-on : ubuntu-latest
26
29
persist-credentials : false
27
30
- uses : actions/setup-python@v5
28
31
with :
29
- python-version : 3.8
32
+ python-version : $LINTING_PYTHON_VERSION
30
33
cache : ' pip'
31
34
cache-dependency-path : ' setup.py'
32
35
- name : Install with type-checking tools, stubs & minimal test libraries
43
46
persist-credentials : false
44
47
- uses : actions/setup-python@v5
45
48
with :
46
- python-version : 3.7
49
+ python-version : $LINTING_PYTHON_VERSION
47
50
cache : ' pip'
48
51
cache-dependency-path : ' setup.py'
49
52
- name : Install with linting tools
60
63
persist-credentials : false
61
64
- uses : actions/setup-python@v5
62
65
with :
63
- python-version : 3.7
66
+ python-version : $LINTING_PYTHON_VERSION
64
67
cache : ' pip'
65
68
cache-dependency-path : ' setup.py'
66
69
- name : Install with linting tools & minimal test libraries
78
81
persist-credentials : false
79
82
- uses : actions/setup-python@v5
80
83
with :
81
- python-version : 3.7
84
+ python-version : $LINTING_PYTHON_VERSION
82
85
cache : ' pip'
83
86
cache-dependency-path : ' setup.py'
84
87
- name : Install with linting tools
95
98
persist-credentials : false
96
99
- uses : actions/setup-python@v5
97
100
with :
98
- python-version : 3.7
101
+ python-version : $LINTING_PYTHON_VERSION
99
102
cache : ' pip'
100
103
cache-dependency-path : ' setup.py'
101
104
- name : Install with linting tools
@@ -112,7 +115,7 @@ jobs:
112
115
persist-credentials : false
113
116
- uses : actions/setup-python@v5
114
117
with :
115
- python-version : 3.7
118
+ python-version : $LINTING_PYTHON_VERSION
116
119
cache : ' pip'
117
120
cache-dependency-path : ' setup.py'
118
121
- name : Minimal install
@@ -129,7 +132,7 @@ jobs:
129
132
persist-credentials : false
130
133
- uses : actions/setup-python@v5
131
134
with :
132
- python-version : 3.7
135
+ python-version : $LINTING_PYTHON_VERSION
133
136
cache : ' pip'
134
137
cache-dependency-path : ' setup.py'
135
138
- name : Minimal install
@@ -154,7 +157,7 @@ jobs:
154
157
- uses : actions/setup-python@v5
155
158
if : github.event_name == 'pull_request'
156
159
with :
157
- python-version : 3.7
160
+ python-version : $LINTING_PYTHON_VERSION
158
161
cache : ' pip'
159
162
cache-dependency-path : ' setup.py'
160
163
- name : Install with gitlint
@@ -215,7 +218,7 @@ jobs:
215
218
- uses : actions/setup-python@v5
216
219
if : github.event_name == 'pull_request'
217
220
with :
218
- python-version : 3.7
221
+ python-version : $LINTING_PYTHON_VERSION
219
222
cache : ' pip'
220
223
cache-dependency-path : ' setup.py'
221
224
- name : Run check-branch
0 commit comments