29
29
description : Additional names for the matrix
30
30
required : false
31
31
type : string
32
- run_pre :
33
- default : " "
34
- description : Preparatory command to run before test commands.
35
- required : false
36
- type : string
37
- run_post :
38
- default : " "
39
- description : Command to run after test commands.
40
- required : false
41
- type : string
42
32
43
33
env :
44
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # might be needed by tox commands
@@ -59,10 +49,11 @@ jobs:
59
49
min_python : ${{ inputs.min_python }}
60
50
max_python : ${{ inputs.max_python }}
61
51
default_python : ${{ inputs.default_python }}
62
- # we must use tox to query these
63
52
other_names : |
64
53
docs
65
54
lint
55
+ pkg
56
+ py312-milestone
66
57
${{ inputs.other_names_also }}
67
58
platforms : linux,macos
68
59
@@ -95,16 +86,12 @@ jobs:
95
86
key : pre-commit-${{ matrix.name }}-${{ hashFiles('.pre-commit-config.yaml') }}
96
87
97
88
- name : Set up Python ${{ matrix.python_version || '3.12' }}
98
- if : ${{ !contains(matrix.shell, 'wsl') }}
89
+ if : " !contains(matrix.shell, 'wsl')"
99
90
uses : actions/setup-python@v5
100
91
with :
101
- cache : ${{ hashFiles('requirements.txt', 'pyproject.toml') && ' pip' || '' }}
92
+ cache : pip
102
93
python-version : ${{ matrix.python_version || '3.12' }}
103
94
104
- - name : Run pre
105
- if : ${{ inputs.run_pre }}
106
- run : ${{ inputs.run_pre }}
107
-
108
95
- name : Install tox
109
96
run : |
110
97
python3 -m pip install --upgrade pip
@@ -127,10 +114,6 @@ jobs:
127
114
- run : ${{ matrix.command5 }}
128
115
if : ${{ matrix.command5 }}
129
116
130
- - name : Run post
131
- if : ${{ inputs.run_post }}
132
- run : ${{ inputs.run_post }}
133
-
134
117
- name : Archive logs and coverage data
135
118
uses : actions/upload-artifact@v4
136
119
with :
@@ -193,15 +176,14 @@ jobs:
193
176
fi
194
177
195
178
- name : Upload coverage data
196
- if : ${{ inputs.jobs_producing_coverage }}
197
179
uses : codecov/codecov-action@v4
198
180
with :
199
181
name : ${{ matrix.name }}
200
182
fail_ci_if_error : true
201
183
use_oidc : true
202
184
203
185
- name : Check codecov.io status
204
- if : github.event_name == 'pull_request' && inputs.jobs_producing_coverage
186
+ if : github.event_name == 'pull_request'
205
187
uses : coactions/codecov-status@main
206
188
207
189
- name : Decide whether the needed jobs succeeded or failed
0 commit comments