adds instructions to get coverage (#299)

Co-authored-by: Markos Gogoulos <markos@orfium.com>
This commit is contained in:
Markos Gogoulos 2022-01-31 20:53:57 +02:00 committed by GitHub
parent f1a1e342db
commit 6b6662420f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[run]
omit =
*bento4*
*/migrations/*

View File

@ -31,5 +31,8 @@ jobs:
- name: Run Django Tests
run: docker-compose -f docker-compose-dev.yaml exec --env TESTING=True -T web pytest
# Run with coverage, saves report on htmlcov dir
# run: docker-compose -f docker-compose-dev.yaml exec --env TESTING=True -T web pytest --cov --cov-report=html --cov-config=.coveragerc
- name: Tear down the Stack
run: docker-compose -f docker-compose-dev.yaml down