Skip to content

Commit c8e4566

Browse files
committed
ci: fix docker codecov
1 parent b22dd66 commit c8e4566

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/pytest-gpu.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
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

docker/entrypoint.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ if [[ "$DEVITO_ARCH" = "icx" || "$DEVITO_ARCH" = "icc" ]]; then
1313
source /opt/intel/oneapi/setvars.sh intel64
1414
fi
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
1924
else
2025
exec "$@"
2126
fi

0 commit comments

Comments
 (0)