Skip to content

Commit b9c7d5f

Browse files
committed
Use coverall actions instead of python-coveralls
1 parent 9113f1e commit b9c7d5f

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

.github/workflows/unittests.yaml

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,41 @@ jobs:
3737
path: __pytest_reports/charon-unit-tests.html
3838
name: charon-unit-tests_python${{ matrix.os.python }}.html
3939

40+
- name: Coveralls Parallel
41+
uses: coverallsapp/github-action@v2
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
flag-name: python${{ matrix.python-version }}
45+
parallel: true
4046

41-
- name: Run coveralls-python
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
COVERALLS_FLAG_NAME: python${{ matrix.python-version }}
45-
COVERALLS_PARALLEL: true
46-
run: |
47-
python -m pip install --upgrade coveralls
48-
python -m coveralls --service=github
47+
# - name: Run coveralls-python
48+
# env:
49+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
# COVERALLS_FLAG_NAME: python${{ matrix.python-version }}
51+
# COVERALLS_PARALLEL: true
52+
# run: |
53+
# python -m pip install --upgrade coveralls
54+
# python -m coveralls --service=github
4955

50-
coveralls-finish:
51-
name: Finish coveralls-python
56+
# coveralls-finish:
57+
# name: Finish coveralls-python
58+
# needs: test
59+
# runs-on: ubuntu-latest
60+
# steps:
61+
# - name: Finished
62+
# run: |
63+
# pip3 install --upgrade pip setuptools coveralls
64+
# /home/runner/.local/bin/coveralls --finish --service=github
65+
# env:
66+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
finish:
5268
needs: test
69+
if: ${{ always() }}
5370
runs-on: ubuntu-latest
5471
steps:
55-
- name: Finished
56-
run: |
57-
pip3 install --upgrade pip setuptools coveralls
58-
/home/runner/.local/bin/coveralls --finish --service=github
59-
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
- name: Coveralls Finished
73+
uses: coverallsapp/github-action@v2
74+
with:
75+
parallel-finished: true
76+
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
carryforward: "python3.9, python3.10, python3.11, python3.12"

0 commit comments

Comments
 (0)