|
23 | 23 | - '!**Makefile' |
24 | 24 | - '!**md' |
25 | 25 |
|
26 | | -permissions: |
27 | | - contents: read |
| 26 | +#permissions: |
| 27 | +# contents: read |
28 | 28 |
|
29 | 29 | #env: |
30 | 30 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) |
@@ -101,8 +101,39 @@ jobs: |
101 | 101 | coveralls-out: coveralls.json |
102 | 102 | print-summary: true |
103 | 103 | root: ${{github.workspace}} |
104 | | - - name: send report |
105 | | - uses: 5monkeys/cobertura-action@master |
106 | | - with: |
107 | | - path: cobertura.xml |
108 | | - minimum_coverage: 45 |
| 104 | + |
| 105 | + - name: Produce the coverage report |
| 106 | + uses: insightsengineering/coverage-action@v3 |
| 107 | + with: |
| 108 | + # Path to the Cobertura XML report. |
| 109 | + path: ./cobertura.xml |
| 110 | + # Minimum total coverage, if you want to the |
| 111 | + # workflow to enforce it as a standard. |
| 112 | + # This has no effect if the `fail` arg is set to `false`. |
| 113 | + threshold: 45.00 |
| 114 | + # Fail the workflow if the minimum code coverage |
| 115 | + # reuqirements are not satisfied. |
| 116 | + fail: true |
| 117 | + # Publish the rendered output as a PR comment |
| 118 | + publish: true |
| 119 | + # Create a coverage diff report. |
| 120 | + diff: false |
| 121 | + # Branch to diff against. |
| 122 | + # Compare the current coverage to the coverage |
| 123 | + # determined on this branch. |
| 124 | + diff-branch: main |
| 125 | + # This is where the coverage reports for the |
| 126 | + # `diff-branch` are stored. |
| 127 | + # Branch is created if it doesn't already exist'. |
| 128 | + diff-storage: _xml_coverage_reports |
| 129 | + # A custom title that can be added to the code |
| 130 | + # coverage summary in the PR comment. |
| 131 | + coverage-summary-title: "Code Coverage Summary" |
| 132 | + # Failure modes for coverage regression detection: |
| 133 | + # Fail if any changed file has more uncovered lines (pycobertura exit code 2) |
| 134 | + uncovered-statements-increase-failure: false |
| 135 | + # Fail if new uncovered statements are introduced despite overall improvement (pycobertura exit code 3) |
| 136 | + new-uncovered-statements-failure: false |
| 137 | + # Fail if the overall coverage percentage decreases (more forgiving approach) |
| 138 | + coverage-rate-reduction-failure: true |
| 139 | + |
0 commit comments