Skip to content

Commit f380505

Browse files
committed
ci: update test workflow to send coverage to coveralls
1 parent 0e7ea89 commit f380505

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/ci-tests.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,28 @@ jobs:
5555
run: |
5656
pip install -e .
5757
coverage run --source=routingpy --module pytest
58-
coverage lcov --include "routingpy/*"
58+
coverage lcov --include "routingpy/*" --output-file=coverage.lcov
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
62+
- name: Upload coverage artifact
63+
if: matrix.python_version == '3.12'
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: coverage-lcov
67+
path: coverage.lcov
68+
69+
coveralls:
70+
needs: build
71+
runs-on: ubuntu-22.04
72+
steps:
73+
- uses: actions/checkout@v4
74+
- name: Download coverage artifact
75+
uses: actions/download-artifact@v4
76+
with:
77+
name: coverage-lcov
78+
- name: Send coverage to Coveralls
79+
uses: coverallsapp/github-action@v2
80+
with:
81+
github-token: ${{ secrets.GITHUB_TOKEN }}
82+
path-to-lcov: coverage.lcov

0 commit comments

Comments
 (0)