We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c43a9b3 commit a2233abCopy full SHA for a2233ab
1 file changed
x.py
@@ -230,7 +230,7 @@ def _workflow_test():
230
},
231
],
232
233
- "build": {
+ "test": {
234
"runs-on": "ubuntu-latest",
235
"steps": [
236
{"uses": ACTION_CHECKOUT},
@@ -365,6 +365,26 @@ def check():
365
_sh(command)
366
367
368
+@cmd()
369
+@arg("path")
370
+@arg("job", nargs="?")
371
+def run_workflow(path, job):
372
+ import json
373
+
374
+ with open(path, "rt") as fobj:
375
+ workflow = json.load(fobj)
376
377
+ if not job:
378
+ print(sorted(workflow["jobs"]))
379
+ return
380
381
+ for step in workflow["jobs"][job]["steps"]:
382
+ if "run" not in step:
383
+ print(step)
384
+ else:
385
+ _sh(step["run"])
386
387
388
@cmd(help="Run the serde_arrow_example")
389
@arg("--backtrace", action="store_true", default=False)
390
def serde_arrow_example(backtrace=False):
0 commit comments