Skip to content

Commit 05324ab

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 a422646 commit 05324ab

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
strategy:
5656
fail-fast: false
5757
matrix:
58+
xfail: [
59+
"windows-py310-pluggy",
60+
"windows-py313",
61+
"ubuntu-py310-pluggy",
62+
"ubuntu-py310-freeze",
63+
"ubuntu-py313",
64+
"macos-py310",
65+
"macos-py313"
66+
]
5867
name: [
5968
"windows-py310-unittest-asynctest",
6069
"windows-py310-unittest-twisted24",
@@ -243,18 +252,7 @@ jobs:
243252
continue-on-error: >-
244253
${{
245254
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
255+
fromJSON(matrix.xfail), matrix.name
258256
)
259257
&& true
260258
|| false

0 commit comments

Comments
 (0)