-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non hidden coverage files fail on merge coverage #473
Comments
Ah of course, it makes sense If you want to do that, you can combine the files yourself with |
When deviating from the If the idea would be to support this approach, maybe a new option, something like As I see it, in the current implementation, the path to where coverage should report on is provided:
This works since Here below are just some quick and untested drafts, but to implement this feature, Config could get a new attribute (e.g. python-coverage-comment-action/coverage_comment/main.py Lines 127 to 130 in 8ca9391
could become something like _, coverage = coverage_module.get_coverage_info(
merge=config.MERGE_COVERAGE_FILES,
merge_pattern=config.MERGE_COVERAGE_PATTERN,
coverage_path=config_path,
) with python-coverage-comment-action/coverage_comment/coverage.py Lines 91 to 96 in 8ca9391
becoming def get_coverage_info(
merge: bool, merge_pattern: pathlib.Path | None, coverage_path: pathlib.Path
) -> tuple[dict, Coverage]:
try:
if merge:
combine_paths = merge_pattern or coverage_path
subprocess.run("coverage", "combine", path=combine_paths) Well, implementing support for non- |
I'm not sure there is much value for the action dealing with this. I'm not sure there was much value in the action merging the coverage in the first place but it was easy to do. |
Tried
include-hidden-files: true
and it worked as expected.Tried to rename the coverage file and the workflow fails as if it is not finding the files
The step before downloads the files without error and downloading them manually works fine as well.
The text was updated successfully, but these errors were encountered: