mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-24 09:13:57 +01:00
adds instructions to get coverage (#299)
Co-authored-by: Markos Gogoulos <markos@orfium.com>
This commit is contained in:
parent
f1a1e342db
commit
6b6662420f
4
.coveragerc
Normal file
4
.coveragerc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[run]
|
||||||
|
omit =
|
||||||
|
*bento4*
|
||||||
|
*/migrations/*
|
3
.github/workflows/python.yml
vendored
3
.github/workflows/python.yml
vendored
@ -31,5 +31,8 @@ jobs:
|
|||||||
- name: Run Django Tests
|
- 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
|
- name: Tear down the Stack
|
||||||
run: docker-compose -f docker-compose-dev.yaml down
|
run: docker-compose -f docker-compose-dev.yaml down
|
||||||
|
Loading…
Reference in New Issue
Block a user