feat: expand on update.py tests and show on Gitlab UI

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2023-01-27 16:41:37 +00:00
parent 137ed04d34
commit ef2baad7b3
No known key found for this signature in database
GPG key ID: 59E43E106B247368
4 changed files with 80 additions and 4 deletions

View file

@ -51,11 +51,12 @@ test:
# Run sharness.
- make -C test sh
# Run pytest.
- pytest
- pytest --junitxml="pytest-report.xml"
- make -C test coverage # Produce coverage reports.
coverage: '/TOTAL.*\s+(\d+\%)/'
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
junit: pytest-report.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml