Skip to content

Commit 0eab78f

Browse files
fix
1 parent 009caaf commit 0eab78f

1 file changed

Lines changed: 50 additions & 50 deletions

File tree

.github/workflows/build-coverage.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ on:
55
branches:
66
- main
77
- gcovr_github
8-
# paths:
9-
# - .github/workflows/*.yml
10-
# - '**CMakeLists.txt'
11-
# - 'cmake/**'
12-
# - 'examples/**'
13-
# - 'src/**'
14-
# - '!**Makefile'
15-
# - '!**md'
8+
paths:
9+
- .github/workflows/*.yml
10+
- '**CMakeLists.txt'
11+
- 'cmake/**'
12+
- 'examples/**'
13+
- 'src/**'
14+
- '!**Makefile'
15+
- '!**md'
1616
pull_request:
1717
branches:
1818
- main
19-
# paths:
20-
# - .github/workflows/*.yml
21-
# - '**CMakeLists.txt'
22-
# - 'cmake/**'
23-
# - 'examples/**'
24-
# - 'src/**'
25-
# - '!**Makefile'
26-
# - '!**md'
27-
#
19+
paths:
20+
- .github/workflows/*.yml
21+
- '**CMakeLists.txt'
22+
- 'cmake/**'
23+
- 'examples/**'
24+
- 'src/**'
25+
- '!**Makefile'
26+
- '!**md'
27+
2828
permissions:
2929
contents: read
3030

@@ -106,37 +106,37 @@ jobs:
106106
root: ${{github.workspace}}
107107

108108
- name: Produce the coverage report
109-
uses: insightsengineering/coverage-action@v3
110-
with:
111-
# Path to the Cobertura XML report.
112-
path: ./cobertura.xml
113-
# Minimum total coverage, if you want to the
114-
# workflow to enforce it as a standard.
115-
# This has no effect if the `fail` arg is set to `false`.
116-
threshold: 45.00
117-
# Fail the workflow if the minimum code coverage
118-
# reuqirements are not satisfied.
119-
fail: true
120-
# Publish the rendered output as a PR comment
121-
publish: true
122-
# Create a coverage diff report.
123-
diff: false
124-
# Branch to diff against.
125-
# Compare the current coverage to the coverage
126-
# determined on this branch.
127-
diff-branch: main
128-
# This is where the coverage reports for the
129-
# `diff-branch` are stored.
130-
# Branch is created if it doesn't already exist'.
131-
diff-storage: _xml_coverage_reports
132-
# A custom title that can be added to the code
133-
# coverage summary in the PR comment.
134-
coverage-summary-title: "Code Coverage Summary"
135-
# Failure modes for coverage regression detection:
136-
# Fail if any changed file has more uncovered lines (pycobertura exit code 2)
137-
uncovered-statements-increase-failure: false
138-
# Fail if new uncovered statements are introduced despite overall improvement (pycobertura exit code 3)
139-
new-uncovered-statements-failure: false
140-
# Fail if the overall coverage percentage decreases (more forgiving approach)
141-
coverage-rate-reduction-failure: true
109+
uses: insightsengineering/coverage-action@v3
110+
with:
111+
# Path to the Cobertura XML report.
112+
path: ./cobertura.xml
113+
# Minimum total coverage, if you want to the
114+
# workflow to enforce it as a standard.
115+
# This has no effect if the `fail` arg is set to `false`.
116+
threshold: 45.00
117+
# Fail the workflow if the minimum code coverage
118+
# reuqirements are not satisfied.
119+
fail: true
120+
# Publish the rendered output as a PR comment
121+
publish: true
122+
# Create a coverage diff report.
123+
diff: false
124+
# Branch to diff against.
125+
# Compare the current coverage to the coverage
126+
# determined on this branch.
127+
diff-branch: main
128+
# This is where the coverage reports for the
129+
# `diff-branch` are stored.
130+
# Branch is created if it doesn't already exist'.
131+
diff-storage: _xml_coverage_reports
132+
# A custom title that can be added to the code
133+
# coverage summary in the PR comment.
134+
coverage-summary-title: "Code Coverage Summary"
135+
# Failure modes for coverage regression detection:
136+
# Fail if any changed file has more uncovered lines (pycobertura exit code 2)
137+
uncovered-statements-increase-failure: false
138+
# Fail if new uncovered statements are introduced despite overall improvement (pycobertura exit code 3)
139+
new-uncovered-statements-failure: false
140+
# Fail if the overall coverage percentage decreases (more forgiving approach)
141+
coverage-rate-reduction-failure: true
142142

0 commit comments

Comments
 (0)