Skip to content

Commit 5a3d94b

Browse files
committed
workflows: add coveralls.io upload
1 parent 607fabd commit 5a3d94b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,32 @@ jobs:
7070
- name: Install dependencies
7171
run: |
7272
pip install -r requirements.txt
73+
pip install coveralls
7374
pip install -e .
7475
- name: Test with pytest
7576
run: |
7677
pytest
78+
- name: Coverage upload
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
COVERALLS_PARALLEL: true
82+
COVERALLS_FLAG_NAME: ${{ join(matrix.*, ',') }}
83+
run: |
84+
coveralls --service=github
85+
86+
finish-coveralls:
87+
needs: pytest
88+
runs-on: ubuntu-latest
89+
steps:
90+
- name: Set up Python
91+
uses: actions/setup-python@v4
92+
with:
93+
python-version: '3.x'
94+
- name: Install dependencies
95+
run: |
96+
pip install coveralls
97+
- name: Coverage finish
98+
env:
99+
GITHUB_TOKEN: ${{ secrets.github_token }}
100+
run: |
101+
coveralls --service=github --finish

0 commit comments

Comments
 (0)