Skip to content

Commit edec653

Browse files
committed
Ensure tox failure fails CI job rather than silently passing
Set the test step shell to `bash -eo pipefail` and redirect `tox` stderr into `tee` (changed `tox -q` to `tox -q 2>&1 | tee tox-output.log`). This ensures pipeline failures are detected (pipefail) and that tox's stderr is recorded in `tox-output.log` for improved debugging in the CI workflow.
1 parent 34b8727 commit edec653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/testing-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ jobs:
5454
libxcb-cursor0
5555
5656
- name: Run tests (exclude hardware) with coverage via tox
57+
shell: bash -eo pipefail {0}
5758
run: |
58-
tox -q | tee tox-output.log
59+
tox -q 2>&1 | tee tox-output.log
5960
6061
6162
- name: Append Coverage Summary to Job

0 commit comments

Comments
 (0)