Skip to content

Commit 19da816

Browse files
committed
ci.py: check the return code in run-local
If the run fails, it should report that and return a non-zero exit status. The simplest way to do that is with `check_returncode()`, which raises a `CalledProcessError`.
1 parent 99768c8 commit 19da816

File tree

1 file changed

+1
-1
lines changed
  • src/ci/github-actions

1 file changed

+1
-1
lines changed

src/ci/github-actions/ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def run_workflow_locally(job_data: Dict[str, Any], job_name: str, pr_jobs: bool)
249249
env = os.environ.copy()
250250
env.update(custom_env)
251251

252-
subprocess.run(args, env=env)
252+
subprocess.run(args, env=env).check_returncode()
253253

254254

255255
def calculate_job_matrix(job_data: Dict[str, Any]):

0 commit comments

Comments
 (0)