From 7ca76314cd4abb4b93b2775ec78136fcfc91c58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sun, 11 May 2025 16:21:48 +0200 Subject: [PATCH] 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 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0356a5ac..e28c0697 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -