Skip to content

Commit

Permalink
Refactor github actions for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Mar 15, 2021
1 parent 7bc29c2 commit 6d2577e
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -U flake8 coveralls argparse
pip install -U flake8 coverage argparse
pip install -U Django~=${{ matrix.django_version }}
- name: Lint with flake8
run: |
Expand All @@ -54,7 +54,19 @@ jobs:
run: |
python -W error::DeprecationWarning -W error::PendingDeprecationWarning \
-m coverage run `which django-admin` test --settings=safedelete.tests.settings
- name: Coverage
if: ${{ success() }}
run: |
coveralls --service=github
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.python_version }}-${{ matrix.django_version }}
parallel: true

finish:
needs: tests_python
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 6d2577e

Please sign in to comment.