Skip to content

Commit c40936f

Browse files
authored
Rollup merge of #135953 - cuviper:ci-run-local-fail, r=Kobzol
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 `run(..., check=True)`, which raises a `CalledProcessError`.
2 parents a70b0d5 + 8eebbba commit c40936f

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=True)
253253

254254

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

0 commit comments

Comments
 (0)