Skip to content

Commit d241ed1

Browse files
committed
Make tests check function correctly
1 parent f26565a commit d241ed1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
# Aggregate job that provides a single check for all tests passing
3333
tests:
3434
runs-on: ubuntu-24.04
35+
if: always() # Always run, even on cancellation or failure
3536
needs:
3637
- python
3738
- cassandra
@@ -55,13 +56,21 @@ jobs:
5556
- valkey
5657

5758
steps:
58-
- name: Success
59-
run: echo "Success!"
59+
- name: Status
60+
if: success()
61+
run: |
62+
echo "Job status: ${{ job.status }}"
63+
64+
if [[ ${{ job.status }} == "success" ]]; then
65+
exit 0
66+
else
67+
exit 1
68+
fi
6069
6170
# Combine and upload coverage data
6271
coverage:
63-
if: success() || failure() # Does not run on cancelled workflows
6472
runs-on: ubuntu-24.04
73+
if: success() || failure() # Does not run on cancelled workflows
6574
needs:
6675
- tests
6776

0 commit comments

Comments
 (0)