We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92673a7 + aa9e106 commit 0cccf8aCopy full SHA for 0cccf8a
1 file changed
docker/entrypoint.sh
@@ -16,6 +16,12 @@ fi
16
if [[ -v CODECOV_TOKEN ]]; then
17
echo "CODECOV_TOKEN provided, running and uploading coverage report"
18
"$@"
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
25
./codecov --verbose upload-process --disable-search \
26
-t ${CODECOV_TOKEN} \
27
-F "pytest-gpu-${DEVITO_ARCH}-${DEVITO_PLATFORM}" \
0 commit comments