Skip to content

Commit

Permalink
upload coverage to codecov with codecov-action
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s authored and BethanyG committed Mar 29, 2020
1 parent ac8f3ff commit 20351f7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
run: docker-compose up -d web

- name: Run test suite
run: docker-compose run -T --rm app pytest -v --cov-report= --cov=.
if: always()
run: docker-compose run -T --rm app pytest -v --cov-report=xml --cov=.

- name: Check Migrations are up-to-date
run: docker-compose run -T --rm app ./manage.py makemigrations --check
if: always()

- name: Upload coverage report to codecov
uses: codecov/codecov-action@v1
with:
file: ./project/coverage.xml

0 comments on commit 20351f7

Please sign in to comment.