Skip to content

Commit

Permalink
Fix reporting of test coverage to GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippWendler committed Aug 26, 2024
1 parent 80909bd commit 45949a8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ stages:
- sudo -u $PRIMARY_USER coverage xml
tags:
- privileged
coverage: '/TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
paths:
- coverage.xml
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml

tests:cgroups1:python-3.8:
<<: *tests-cgroupsv1
Expand Down Expand Up @@ -97,9 +100,12 @@ tests:cgroupsv1:python-3.12:
- coverage xml
tags:
- cgroupsv2
coverage: '/TOTAL.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
paths:
- coverage.xml
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml

tests:cgroupsv2:python-3.8:
<<: *tests-cgroupsv2
Expand Down

0 comments on commit 45949a8

Please sign in to comment.