File tree Expand file tree Collapse file tree 3 files changed +10
-38
lines changed Expand file tree Collapse file tree 3 files changed +10
-38
lines changed Original file line number Diff line number Diff line change 5757 intel-oneapi-libdpstd-devel \
5858 intel-oneapi-compiler-dpcpp-cpp
5959
60- - name : Install Lcov
61- run : |
62- sudo apt-get install lcov
63- sudo gem install coveralls-lcov
64-
6560 - name : Checkout repo
6661 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6762 with :
@@ -142,32 +137,6 @@ jobs:
142137 echo "Total number of coverage attempts: ${{ steps.build_coverage.outputs.total_attempts }}"
143138
144139 - name : Upload coverage data to coveralls.io
145- run : |
146- echo "Processing pytest-coverage"
147- export DPNP_PYTEST_LCOV=$(find . -name dpnp_pytest.lcov)
148- coveralls-lcov -v -n $DPNP_PYTEST_LCOV > pytest-dpnp-c-api-coverage.json
149-
150- # merge file with coverage data and upload
151- echo "Merging files with coverage data"
152- coveralls --service=github --merge=pytest-dpnp-c-api-coverage.json
153- env :
154- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155- COVERALLS_PARALLEL : true
156-
157- coveralls :
158- name : Indicate completion to coveralls.io
159-
160- needs : generate-coverage
161-
162- runs-on : ubuntu-latest
163- timeout-minutes : 10
164-
165- container : python:3-slim
166-
167- steps :
168- - name : Finished
169- run : |
170- pip3 install --upgrade coveralls==3.3.1
171- coveralls --service=github --finish
172- env :
173- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
140+ uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
141+ with :
142+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ doc/reference/*.inc
1616.vscode
1717
1818# Files from test of code coverage
19- coverage.xml
19+ .coverage
20+ * .lcov
21+ dpnp /** /* .cxx
22+ dpnp_pytest. *
2023
2124# Backup files kept after git merge/rebase
2225* .orig
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ def run(
9696 "pyproject.toml" ,
9797 "--cov" ,
9898 "dpnp" ,
99- "--cov-report" ,
100- "term-missing " ,
99+ "--cov-report=term-missing " ,
100+ "--cov-report=lcov:coverage-python.lcov " ,
101101 "--pyargs" ,
102102 "dpnp" ,
103103 * pytest_opts .split (),
@@ -136,7 +136,7 @@ def find_objects():
136136 )
137137
138138 # export lcov
139- with open ("dpnp_pytest .lcov" , "w" ) as fh :
139+ with open ("coverage-cpp .lcov" , "w" ) as fh :
140140 subprocess .check_call (
141141 [
142142 os .path .join (bin_llvm , "llvm-cov" ),
You can’t perform that action at this time.
0 commit comments