adds instructions to get coverage (#299)

Co-authored-by: Markos Gogoulos <markos@orfium.com>
pull/405/head
Markos Gogoulos 2022-01-31 20:53:57 +02:00 zatwierdzone przez GitHub
rodzic f1a1e342db
commit 6b6662420f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 8 dodań i 1 usunięć

4
.coveragerc 100644
Wyświetl plik

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

Wyświetl plik

@ -29,7 +29,10 @@ jobs:
shell: bash
- name: Run Django Tests
run: docker-compose -f docker-compose-dev.yaml exec --env TESTING=True -T web pytest
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