File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,12 @@ jobs:
68
68
lint
69
69
pkg
70
70
py39-all:tox -f py39
71
- py39-arm64:tox -e py39:runner=ubuntu-24.04-arm64
71
+ py39-arm64:tox -e py39:runner=ubuntu-24.04-arm64;foo=bar
72
72
# ^ job-visible name : optional command : optional arguments
73
73
# command can use ; as separator to run multiple commands
74
- # the only recognized argument is now 'runner'
74
+ # 'runner' argument has special meaning, it is used to determine
75
+ # the value of 'os' variable in the matrix job. Others are just
76
+ # passed to the exploded matrix.
75
77
76
78
build :
77
79
name : ${{ matrix.name }}
96
98
pip install tox
97
99
98
100
- run : ${{ matrix.command }}
101
+
102
+ - run : ${{ matrix.command2 }}
103
+ if : ${{ matrix.command2 }}
104
+
105
+ - run : ${{ matrix.command3 }}
106
+ if : ${{ matrix.command3 }}
107
+
108
+ - run : ${{ matrix.command4 }}
109
+ if : ${{ matrix.command4 }}
110
+
111
+ - run : ${{ matrix.command5 }}
112
+ if : ${{ matrix.command5 }}
99
113
` ` `
100
114
101
115
## Q&A
Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ def sort_key(s: str) -> tuple[int, str]:
157
157
args ["runner" ] = PLATFORM_MAP [platform_name ]
158
158
159
159
data = {
160
+ # we expose all args in the output
161
+ ** args ,
160
162
"name" : name ,
161
163
"command" : commands [0 ],
162
164
"python_version" : "\n " .join (pythons ),
Original file line number Diff line number Diff line change 19
19
"INPUT_MACOS" : "minmax" ,
20
20
"INPUT_MAX_PYTHON" : "3.8" ,
21
21
"INPUT_MIN_PYTHON" : "3.8" ,
22
- "INPUT_OTHER_NAMES" : "z\n all-linux-arm64:tox -e py38-unit;tox -e py310-integration\n foo::runner=custom-arm64" ,
22
+ "INPUT_OTHER_NAMES" : "z\n all-linux-arm64:tox -e py38-unit;tox -e py310-integration\n foo::runner=custom-arm64;mise=true " ,
23
23
"INPUT_PLATFORMS" : "linux-arm64:ubuntu-24.04-arm64-2core" ,
24
24
"INPUT_SKIP_EXPLODE" : "1" ,
25
25
"INPUT_WINDOWS" : "minmax" ,
You can’t perform that action at this time.
0 commit comments