Skip to content

Commit cb0a09b

Browse files
authored
Fix coveralls steps (#169)
1 parent 88329ad commit cb0a09b

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/python-tests.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,25 @@ jobs:
4747
- name: Test with pytest
4848
run: poetry run pytest --cov=./
4949

50-
# - name: Upload coverage data to coveralls.io
51-
# run: |
52-
# pip install coveralls
53-
# coveralls --service=github
54-
# env:
55-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
- name: Upload coverage data to coveralls.io
51+
continue-on-error: true
52+
run: |
53+
pipx run coveralls
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
57+
COVERALLS_PARALLEL: true
58+
59+
coveralls:
60+
name: Indicate completion to coveralls.io
61+
needs: test
62+
runs-on: ubuntu-latest
63+
container: python:3-slim
64+
steps:
65+
- name: Install coveralls
66+
run: pip3 install --upgrade coveralls
67+
- name: Finished
68+
continue-on-error: true
69+
run: coveralls --finish
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)