Skip to content

Commit 0450e29

Browse files
authored
Merge 008ef38 into da3cac3
2 parents da3cac3 + 008ef38 commit 0450e29

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ jobs:
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 }}

scripts/gen_coverage.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def run(
9696
"pyproject.toml",
9797
"--cov",
9898
"dpnp",
99-
"--cov-report",
100-
"term-missing",
99+
"--cov-report=lcov:coverage-python.lcov",
101100
"--pyargs",
102101
"dpnp",
103102
*pytest_opts.split(),
@@ -136,7 +135,7 @@ def find_objects():
136135
)
137136

138137
# export lcov
139-
with open("dpnp_pytest.lcov", "w") as fh:
138+
with open("coverage-cpp.lcov", "w") as fh:
140139
subprocess.check_call(
141140
[
142141
os.path.join(bin_llvm, "llvm-cov"),

0 commit comments

Comments
 (0)