Commit c8ff1fe
committed
Fix/treat pytest exit 5 (no tests collected) as success
The release pipeline runs `make test MARKER="integration"` across
non-video paths. There are no `@pytest.mark.integration` tests in those
paths, so pytest deselects all 579 collected items and exits with code
5 ("no tests collected"). make treats that as a failure, so every
"Test (integration) / Non-video tests (3.x)" matrix cell reports
failure and the `release` job's `needs:` cannot be satisfied. Example:
https://github.com/GetStream/stream-py/actions/runs/26416959683.
Wrap the `test` and `test-video` recipes so exit code 5 is converted
to 0 (with a log line) while every other non-zero code still
propagates. The fix is symmetric across both recipes because either
group may have an empty marker selection in the future.1 parent 20bcf68 commit c8ff1fe
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
0 commit comments