Skip to content

Commit 44a8e38

Browse files
More verbosity to steps of coverall uploads
1 parent cfefca3 commit 44a8e38

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/generate-coverage.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,17 @@ jobs:
9696
- name: Upload coverage data to coveralls.io
9797
shell: bash -l {0}
9898
run: |
99+
echo "Processing c-api-coverage"
100+
export DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
101+
grep "/tmp" $DPCTL_LCOV_FN
99102
coveralls-lcov -v -n \
100-
$(find _skbuild -name dpctl.lcov) > dpctl-c-api-coverage.json
103+
$DPCTL_LCOV_FN > dpctl-c-api-coverage.json
104+
echo "Processing pytest-coverage"
105+
export DPCTL_PYTEST_LCOV=$(find . -name dpctl_pytest.lcov)
106+
grep "/tmp" $DPCTL_PYTEST_LCOV
101107
coveralls-lcov -v -n \
102-
$(find . -name dpctl_pytest.lcov) > pytest-dpctl-c-api-coverage.json
103-
# merge json files
108+
$DPCTL_PYTEST_LCOV > pytest-dpctl-c-api-coverage.json
109+
echo "Merging JSON files"
104110
python -c "import json; \
105111
fh1 = open('dpctl-c-api-coverage.json', 'r'); \
106112
f1 = json.load(fh1); fh1.close(); \
@@ -113,6 +119,7 @@ jobs:
113119
ls -lh dpctl-c-api-coverage.json pytest-dpctl-c-api-coverage.json \
114120
combined-dpctl-c-api-coverage.json \
115121
$(find _skbuild -name dpctl.lcov) $(find . -name dpctl_pytest.lcov)
122+
echo "Merging combined files with coverage data"
116123
coveralls --service=github --merge=combined-dpctl-c-api-coverage.json
117124
env:
118125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)