File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,17 @@ jobs:
96
96
- name : Upload coverage data to coveralls.io
97
97
shell : bash -l {0}
98
98
run : |
99
+ echo "Processing c-api-coverage"
100
+ export DPCTL_LCOV_FN=$(find _skbuild -name dpctl.lcov)
101
+ grep "/tmp" $DPCTL_LCOV_FN
99
102
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
101
107
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"
104
110
python -c "import json; \
105
111
fh1 = open('dpctl-c-api-coverage.json', 'r'); \
106
112
f1 = json.load(fh1); fh1.close(); \
@@ -113,6 +119,7 @@ jobs:
113
119
ls -lh dpctl-c-api-coverage.json pytest-dpctl-c-api-coverage.json \
114
120
combined-dpctl-c-api-coverage.json \
115
121
$(find _skbuild -name dpctl.lcov) $(find . -name dpctl_pytest.lcov)
122
+ echo "Merging combined files with coverage data"
116
123
coveralls --service=github --merge=combined-dpctl-c-api-coverage.json
117
124
env :
118
125
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments