File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 - name : Remove dangling layers
8080 run : docker system prune -f
8181
82+ - name : check codecov setup
83+ run : |
84+ ci_env=`bash <(curl -s https://codecov.io/env)`
85+ echo $ci_env
86+
8287 - name : Test with pytest
8388 run : |
8489 # Remove all existing containers for safety
Original file line number Diff line number Diff line change @@ -13,9 +13,14 @@ if [[ "$DEVITO_ARCH" = "icx" || "$DEVITO_ARCH" = "icc" ]]; then
1313 source /opt/intel/oneapi/setvars.sh intel64
1414fi
1515
16- if [[ -z " ${DEPLOY_ENV} " ]]; then
17- exec " $@ "
18- ./codecov -t ${CODECOV_TOKEN} -F " ${DEVITO_ARCH} -${DEVITO-PLATFORM} " || echo " no coverage report exported"
16+ if [[ -v CODECOV_TOKEN ]]; then
17+ echo " CODECOV_TOKEN provided, running and uploading coverage report"
18+ " $@ "
19+ ./codecov --verbose upload-process --disable-search \
20+ -t ${CODECOV_TOKEN} \
21+ -F " pytest-gpu-${DEVITO_ARCH} -${DEVITO_PLATFORM} " \
22+ -n " pytest-gpu-${DEVITO_ARCH} -${DEVITO_PLATFORM} " \
23+ -f coverage.xml
1924else
2025 exec " $@ "
2126fi
You can’t perform that action at this time.
0 commit comments