adding coverage for test in github
This commit is contained in:
parent
7a474eaf9e
commit
d0ea6f36ad
|
@ -49,7 +49,7 @@ jobs:
|
||||||
pip install virtualenv
|
pip install virtualenv
|
||||||
virtualenv env
|
virtualenv env
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
pip install flake8 pytest
|
pip install flake8 pytest coverage
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Prepare database
|
- name: Prepare database
|
||||||
|
@ -67,5 +67,7 @@ jobs:
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
source env/bin/activate
|
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
|
||||||
|
|
||||||
|
|
Reference in New Issue