From d9db73a8d9ff9350bc30c3ff9a62f4be9118db6e Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Wed, 30 Jul 2025 15:12:21 +0100 Subject: [PATCH] Fix coverage combination when other sources are removed --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 244f5025..b9e9b873 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -148,8 +148,9 @@ combined-tests: script: - ./picamera_tests.py unzip - coverage combine - - coverage report - - coverage xml + # Use -i to ignore file changing between the two runs. We check the relevant ones. + - coverage report -i + - coverage xml -i coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' artifacts: when: always