Merge pull request #57 from eReuse/feature/add_coverage

adding coverage for test in github
This commit is contained in:
cayop 2020-09-29 18:25:42 +02:00 committed by GitHub
commit d2396fbf2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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