We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d2c87f commit 779f51fCopy full SHA for 779f51f
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