Skip to content

Commit 8188282

Browse files
Skipping full covered files from xml (#187)
* Add input for skipping full covered files from xml (#186) * formatting xml-skip-covered related files * 1.1.53 * Add option to skip fully covered lines based on xml report * Update @actions/core to version 1.11.1 * Update devDependencies in package.json * update changelog * Update dependabot configuration to allow minor and patch updates for npm development and production dependencies --------- Co-authored-by: Nikita Terentyev <[email protected]>
1 parent e8eba13 commit 8188282

11 files changed

+8347
-7526
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@ updates:
1616
schedule:
1717
interval: 'monthly'
1818
day: 'saturday'
19+
groups:
20+
npm-development:
21+
dependency-type: development
22+
update-types:
23+
- minor
24+
- patch
25+
npm-production:
26+
dependency-type: production
27+
update-types:
28+
- minor
29+
- patch

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog of the Pytest Coverage Comment
22

3+
## [Pytest Coverage Comment 1.1.53](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.1.53)
4+
5+
**Release Date:** 2024-10-10
6+
7+
#### Changes
8+
9+
- add option `xml-skip-covered` to skip lines that covered for 100% based on xml report, thanks to [@NikTerentev](https://github.com/NikTerentev) for contribution
10+
- bump dev dependencies and minor for `@actions/core`
11+
312
## [Pytest Coverage Comment 1.1.52](https://github.com/MishaKav/pytest-coverage-comment/tree/v1.1.52)
413

514
**Release Date:** 2024-06-30

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can add this action to your GitHub workflow for Ubuntu runners (e.g. runs-on
3232
| Name | Required | Default | Description |
3333
| --------------------------- | -------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3434
| `github-token` | ✓ | `${{github.token}}` | An alternative GitHub token, other than the default provided by GitHub Actions runner |
35-
| `issue-number` | | '' | PR Number where you'd like your comments to be posted to. Required to post a comment when running the workflow on an event that isn't `push` or `pull-request` . |
35+
| `issue-number` | | '' | PR Number where you'd like your comments to be posted to. Required to post a comment when running the workflow on an event that isn't `push` or `pull-request` . |
3636
| `pytest-coverage-path` | | `./pytest-coverage.txt` | The location of the txt output of pytest-coverage. Used to determine coverage percentage |
3737
| `pytest-xml-coverage-path` | | '' | The location of coverage-xml from pytest-coverage (--cov-report "xml:coverage.xml) |
3838
| `coverage-path-prefix` | | '' | Prefix for path when link to files in comment |
@@ -45,7 +45,8 @@ You can add this action to your GitHub workflow for Ubuntu runners (e.g. runs-on
4545
| `junitxml-title` | | '' | Title for summary for junitxml |
4646
| `create-new-comment` | | false | When false, will update the same comment, otherwise will publish new comment on each run. |
4747
| `hide-comment` | | false | Hide the whole comment (use when you need only the `output`). Useful for auto-update bagdes in readme. See the [workflow](../main/.github/workflows/live-test.yml) for example |
48-
| `default-branch` | | `main` | This branch name is useful when generate "coverageHtml", it points direct links to files on this branch (instead of commit).<br/>Usually "main" or "master" |
48+
| `xml-skip-covered` | | false | Hide files from xml report with 100% coverage |
49+
| `default-branch` | | `main` | This branch name is useful when generate "coverageHtml", it points direct links to files on this branch (instead of commit).<br/>Usually "main" or "master" |
4950
| `multiple-files` | | '' | You can pass array of titles and files to generate single comment with table of results.<br/>Single line should look like `Title, ./path/to/pytest-coverage.txt, ./path/to/pytest-junit.xml`<br/> example:<br/> `My Title 1, ./data/pytest-coverage_3.txt, ./data/pytest_1.xml`<br/>**Note:** In that mode the `output` for `coverage` and `color` will be for the first file only. |
5051
| `remove-link-from-badge` | | false | When true, it will remove the link from badge to readme |
5152
| `unique-id-for-comment` | | '' | When running in a matrix, pass the matrix value, so each comment will be updated its own comment `unique-id-for-comment: ${{ matrix.python-version }}` |

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ inputs:
5656
default: 'false'
5757
required: false
5858

59+
xml-skip-covered:
60+
description: 'Hide files from xml report with 100% coverage'
61+
default: 'false'
62+
required: false
63+
5964
report-only-changed-files:
6065
description: 'Show in report only changed files for this commit, and not all files'
6166
default: 'false'

0 commit comments

Comments
 (0)