Skip to content

Commit db12818

Browse files
committed
upload coverage to codecov with codecov-action
1 parent 5e54191 commit db12818

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ jobs:
1818
run: docker-compose up -d web
1919

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

2423
- name: Check Migrations are up-to-date
2524
run: docker-compose run -T --rm app ./manage.py makemigrations --check
26-
if: always()
25+
26+
- name: Upload coverage report to codecov
27+
uses: codecov/codecov-action@v1
28+
with:
29+
file: ./project/coverage.xml

0 commit comments

Comments
 (0)