Skip to content

Commit b290db3

Browse files
committed
test workflow: use an explicit matrix variable instead of an inline value
zizmor complains that the previous approach was considered "obfuscation". Using a matrix value instead as suggested in #13733 (comment).
1 parent 5d1366a commit b290db3

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
python: "3.10"
113113
os: windows-latest
114114
tox_env: "py310-pluggymain-pylib-xdist"
115+
xfail: true
115116

116117
- name: "windows-py310-xdist"
117118
python: "3.10"
@@ -132,6 +133,7 @@ jobs:
132133
python: "3.13"
133134
os: windows-latest
134135
tox_env: "py313"
136+
xfail: true
135137

136138
- name: "windows-py314"
137139
python: "3.14"
@@ -167,11 +169,13 @@ jobs:
167169
python: "3.10"
168170
os: ubuntu-latest
169171
tox_env: "py310-pluggymain-pylib-xdist"
172+
xfail: true
170173

171174
- name: "ubuntu-py310-freeze"
172175
python: "3.10"
173176
os: ubuntu-latest
174177
tox_env: "py310-freeze"
178+
xfail: true
175179

176180
- name: "ubuntu-py310-xdist"
177181
python: "3.10"
@@ -195,6 +199,7 @@ jobs:
195199
os: ubuntu-latest
196200
tox_env: "py313-pexpect"
197201
use_coverage: true
202+
xfail: true
198203

199204
- name: "ubuntu-py314"
200205
python: "3.14"
@@ -212,6 +217,7 @@ jobs:
212217
python: "3.10"
213218
os: macos-latest
214219
tox_env: "py310-xdist"
220+
xfail: true
215221

216222
- name: "macos-py312"
217223
python: "3.12"
@@ -222,6 +228,7 @@ jobs:
222228
python: "3.13"
223229
os: macos-latest
224230
tox_env: "py313-xdist"
231+
xfail: true
225232

226233
- name: "macos-py314"
227234
python: "3.14"
@@ -240,25 +247,7 @@ jobs:
240247
tox_env: "doctesting"
241248
use_coverage: true
242249

243-
continue-on-error: >-
244-
${{
245-
contains(
246-
fromJSON(
247-
'[
248-
"windows-py310-pluggy",
249-
"windows-py313",
250-
"ubuntu-py310-pluggy",
251-
"ubuntu-py310-freeze",
252-
"ubuntu-py313",
253-
"macos-py310",
254-
"macos-py313"
255-
]'
256-
),
257-
matrix.name
258-
)
259-
&& true
260-
|| false
261-
}}
250+
continue-on-error: ${{ matrix.xfail && true || false }}
262251

263252
steps:
264253
- uses: actions/checkout@v5

0 commit comments

Comments
 (0)