Skip to content

Commit 0cccf8a

Browse files
authored
Merge pull request #2572 from devitocodes/test_gpu_failing
CI: Ensure docker errors at test failure with codecov
2 parents 92673a7 + aa9e106 commit 0cccf8a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ fi
1616
if [[ -v CODECOV_TOKEN ]]; then
1717
echo "CODECOV_TOKEN provided, running and uploading coverage report"
1818
"$@"
19+
# Check if the tests failed
20+
if [[ $? -ne 0 ]]; then
21+
echo "Tests failed, exiting without uploading coverage"
22+
exit 1
23+
fi
24+
# Upload codecov report
1925
./codecov --verbose upload-process --disable-search \
2026
-t ${CODECOV_TOKEN} \
2127
-F "pytest-gpu-${DEVITO_ARCH}-${DEVITO_PLATFORM}" \

0 commit comments

Comments
 (0)