adding coverage for test in github

This commit is contained in:
Cayo Puigdefabregas 2020-09-29 18:15:28 +02:00
parent 7a474eaf9e
commit d0ea6f36ad

View file

@ -49,7 +49,7 @@ jobs:
pip install virtualenv
virtualenv env
source env/bin/activate
pip install flake8 pytest
pip install flake8 pytest coverage
pip install -r requirements.txt
- name: Prepare database
@ -67,5 +67,7 @@ jobs:
- name: Run Tests
run: |
source env/bin/activate
pytest -m mvp --maxfail=5 tests/
coverage run --source='ereuse_devicehub' env/bin/pytest -m mvp --maxfail=5 tests/
coverage report --include='ereuse_devicehub/*'
coverage xml