ci: Run unit tests with coverage report

This commit is contained in:
Drikus Roor
2023-04-11 20:23:26 +02:00
committed by Drikus Roor
parent de28b376e8
commit 7c4a2c86ab

View File

@@ -30,7 +30,12 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run unittest tests
- name: Run unittest tests with coverage
continue-on-error: true
run: |
python -m unittest discover -t . -s tests
coverage run -m unittest discover tests
- name: Generate coverage report
run: |
coverage report
coverage xml