Skip to content

Commit 9cc0f62

Browse files
committed
workflows: add coveralls.io upload
1 parent 5c6f4f4 commit 9cc0f62

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,32 @@ jobs:
6464
- name: Install dependencies
6565
run: |
6666
pip install -r requirements.txt
67+
pip install coveralls
6768
pip install -e .
6869
- name: Test with pytest
6970
run: |
7071
pytest
72+
- name: Coverage upload
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
COVERALLS_PARALLEL: true
76+
COVERALLS_FLAG_NAME: ${{ join(matrix.*, ',') }}
77+
run: |
78+
coveralls --service=github
79+
80+
finish-coveralls:
81+
needs: pytest
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Set up Python
85+
uses: actions/setup-python@v4
86+
with:
87+
python-version: '3.x'
88+
- name: Install dependencies
89+
run: |
90+
pip install coveralls
91+
- name: Coverage finish
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.github_token }}
94+
run: |
95+
coveralls --service=github --finish

0 commit comments

Comments
 (0)