Skip to content

Commit 45a65d3

Browse files
committed
Use GH action to upload the coverage data to coveralls.io
1 parent da3cac3 commit 45a65d3

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -142,32 +142,6 @@ jobs:
142142
echo "Total number of coverage attempts: ${{ steps.build_coverage.outputs.total_attempts }}"
143143
144144
- 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 }}
145+
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
146+
with:
147+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)