Generate reports properly

This commit is contained in:
Manuel Cortez 2022-02-19 16:12:50 -06:00
parent da77f77777
commit b15b6f705d
No known key found for this signature in database
GPG Key ID: 262CC30FA01B5CBF

View File

@ -26,11 +26,9 @@ test:pytest:
script: script:
- 'pip install --upgrade pytest coverage' - 'pip install --upgrade pytest coverage'
- 'pip install --upgrade -r requirements.txt' - 'pip install --upgrade -r requirements.txt'
- 'cd src' - 'coverage run --source . -m pytest --junitxml=report.xml'
- 'coverage run --source . --omit model/application.py --omit model=logger.py -m pytest --junitxml=../report.xml'
- 'coverage report' - 'coverage report'
- 'coverage xml' - 'coverage xml'
- 'mv coverage.xml ..'
only: only:
- branches@manuelcortez/updater - branches@manuelcortez/updater
- release - release