Skip to content

Commit 6d2577e

Browse files
committed
Refactor github actions for coveralls
1 parent 7bc29c2 commit 6d2577e

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/python-app.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
python -m pip install --upgrade pip
4646
pip install -e .
47-
pip install -U flake8 coveralls argparse
47+
pip install -U flake8 coverage argparse
4848
pip install -U Django~=${{ matrix.django_version }}
4949
- name: Lint with flake8
5050
run: |
@@ -54,7 +54,19 @@ jobs:
5454
run: |
5555
python -W error::DeprecationWarning -W error::PendingDeprecationWarning \
5656
-m coverage run `which django-admin` test --settings=safedelete.tests.settings
57-
- name: Coverage
58-
if: ${{ success() }}
59-
run: |
60-
coveralls --service=github
57+
- name: Coveralls Parallel
58+
uses: coverallsapp/github-action@master
59+
with:
60+
github-token: ${{ secrets.GITHUB_TOKEN }}
61+
flag-name: run-${{ matrix.python_version }}-${{ matrix.django_version }}
62+
parallel: true
63+
64+
finish:
65+
needs: tests_python
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Coveralls Finished
69+
uses: coverallsapp/github-action@master
70+
with:
71+
github-token: ${{ secrets.GITHUB_TOKEN }}
72+
parallel-finished: true

0 commit comments

Comments
 (0)