Skip to content
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

Create annotations based on diff-coverage, not full coverage #212

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

ewjoachim
Copy link
Member

This is a revamp of #188

I believe that the part that failed was:
https://github.com/py-cov-action/python-coverage-comment-action/pull/188/files#diff-5327f4a45499e33cab8758f61e6b738fc200a07b00c58fc231f37a3142461ac7R194-R207

which I removed completely from this PR, as it wasn't needed.

1/ This PR being created by me, we'll get e2e tests
2/ I've remade the commits and remove the things are are much unrelated. We still have a 1st commit that could be somewhat elsewhere, but we were being really inconsistent in types used, and it was visible when switching between cover and diff-cover, so hopefully it's better now

ewjoachim and others added 2 commits July 23, 2023 11:03
Co-Authored-By: Martin Bernstorff <martinbernstorff@gmail.com>
@ewjoachim ewjoachim requested a review from kieferro July 23, 2023 09:14
@github-actions
Copy link

End-to-end public repo
End-to-end private repo
If the tests fail, @ewjoachim will be added to the private repo

@github-actions
Copy link

Coverage report

The coverage rate went from 100% to 100% ➡️
The branch rate is 100%.

100% of new lines are covered.

Diff Coverage details (click to unfold)

coverage_comment/annotations.py

100% of new lines are covered (100% of the complete file).

coverage_comment/coverage.py

100% of new lines are covered (100% of the complete file).

coverage_comment/main.py

100% of new lines are covered (100% of the complete file).

coverage_comment/github.py

100% of new lines are covered (100% of the complete file).

Copy link
Member

@kieferro kieferro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that looks great

@ewjoachim ewjoachim merged commit fdf2f2d into v3 Jul 27, 2023
2 checks passed
@ewjoachim ewjoachim deleted the annotations-on-diff branch July 27, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants