Skip to content

Add verify script that replaces the code coverage workflow - #550

Merged
thomaskrause merged 9 commits into
mainfrom
add-verify-script
Aug 20, 2026
Merged

Add verify script that replaces the code coverage workflow#550
thomaskrause merged 9 commits into
mainfrom
add-verify-script

Conversation

@thomaskrause

@thomaskrause thomaskrause commented Aug 11, 2026

Copy link
Copy Markdown
Member

This removes our dependency to the external Codecov service and allows to measure the code coverage of the PR/patch before submitting it locally.

To use the verify.sh script locally, you have to install diff-cover first:

pipx install diff-cover

The verify.sh script is adapted from graphANNIS and also executes all tests, checks that the code is formatted and runs clippy.

For PRs that are submitted from this repo, a comment will be added with the code coverage information.
The comment is only text, but if you run the script locally you get a nice HTML page with the changed lines and their coverage information.
Adding a comment to the PR is skipped for PRs from fork because of GitHub Actions security guard rails. The script is still run and would fail if the minimal patch coverage (80%) is not reached and the output is visible in the logs.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Commit 81665b8

-------------
Diff Coverage
Diff: origin/main...HEAD, staged and unstaged changes
-------------
No lines with coverage information in this diff.
-------------

@thomaskrause
thomaskrause requested a review from MartinKl August 11, 2026 12:04

@MartinKl MartinKl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good to me

@MartinKl
MartinKl enabled auto-merge August 17, 2026 11:44
@thomaskrause
thomaskrause disabled auto-merge August 20, 2026 09:33
@thomaskrause
thomaskrause merged commit d9f52fe into main Aug 20, 2026
6 checks passed
@thomaskrause
thomaskrause deleted the add-verify-script branch August 20, 2026 09:33
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