ci: add test coverage to the GitLab UI

This is a small nit, but allows to see the coverage percentage change
across MRs. It gives a small dopamine boost to see an MR you sent has
tests and made a small impact in the overall coverage :)

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2596
This commit is contained in:
Pablo Correa Gómez 2025-05-11 16:21:48 +02:00 committed by Oliver Smith
parent 8f564edd78
commit 7ca76314cd
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -52,6 +52,7 @@ pytest:
after_script:
- "cp /home/build/.local/var/pmbootstrap/log_testsuite.txt ."
- "cp /home/build/.local/var/pmbootstrap/log.txt ."
coverage: '/TOTAL.*? (100(?:\.0+)?\%\|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
paths:
@ -232,4 +233,3 @@ pkgrel_bump amd64:
extends: .integration
script:
- .ci/integration_tests/bump_autobuild qemu-amd64 hello-world