Repository navigation
feat(ci): add line coverage reporting and compare it with main baseline - #53
Open
lukaszstolarczuk wants to merge 4 commits into
Open
lukaszstolarczuk wants to merge 4 commits into
lukaszstolarczuk wants to merge 4 commits into
Conversation
lukaszstolarczuk
force-pushed
the
add-coverage
branch
2 times, most recently
from
October 27, 2026 17:56
f22779d to
337d163
Compare
Contributor
Author
lukaszstolarczuk
force-pushed
the
add-coverage
branch
from
October 28, 2026 13:44
337d163 to
0d8f39c
Compare
lukaszstolarczuk
marked this pull request as ready for review
October 28, 2026 13:44
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
7 open issues
This workflow isn’t defined asworkflow_call/workflow_dispatchhere, so theinputscontext is… · New Units are inconsistent: the summary uses percentage points (pp), but the emitted::error… · New Units are inconsistent: the summary uses percentage points (pp), but the emitted::error… · New PR description says PRs fail if total coverage drops by more than 10 percentage points, but the… · New Correct typo in help text: 'then' should be 'than'. · New This text is user-facing in the job summary and is Windows-path specific (htmlcov\\index.html).… · New Step name sayscoveritybut it updates a coverage badge. Rename toUpdate coverage badgeto… · New
What changed in this PR
Adds CI line coverage reporting, including combining coverage from tests + examples, comparing against a main baseline, and reporting changed-line coverage via diff-cover.
Changes:
- Collect coverage during unit/functional tests and example runs, then upload raw coverage data as an artifact.
- Add a dedicated
coveragejob to combine reports, compare againstmain, run diff-cover, and publish a GitHub Actions summary/notice. - Document coverage measurement locally and add a README coverage badge.
| File | Description |
|---|---|
| pyproject.toml | Adds coverage tooling deps/groups and configures coverage.py (paths, parallel, reporting). |
| examples/LLM/pyproject.toml | Adds a lightweight dependency group to enable coverage measurement in the example venv. |
| examples/E5Large/pyproject.toml | Adds a lightweight dependency group to enable coverage measurement in the example venv. |
| README.md | Adds a coverage badge pointing to a generated gist badge. |
| CONTRIBUTING.md | Documents how CI measures coverage and how to run coverage locally. |
| .github/workflows/tests.yml | Runs tests/examples under coverage, uploads artifacts, adds a post-job coverage comparison/summary job, and attempts to update a badge. |
| .github/scripts/coverage_summary.py | New script to compare current vs baseline coverage and render a job summary + notice + failure threshold. |
Review effort: Lite
Copilot stopped reviewing on behalf of
lukaszstolarczuk due to an error
October 28, 2026 15:45
lukaszstolarczuk
force-pushed
the
add-coverage
branch
2 times, most recently
from
October 29, 2026 09:16
ee6a601 to
51ae08e
Compare
PatKamin
reviewed
Oct 29, 2026
PatKamin
reviewed
Oct 29, 2026
lukaszstolarczuk
force-pushed
the
add-coverage
branch
2 times, most recently
from
October 29, 2026 13:35
412705b to
c654235
Compare
PatKamin
approved these changes
Oct 29, 2026
Line coverage from tests and examples in tests.yml. - Add helper coverage job after tests, it combines the data, compares it against the latest main and runs diff-cover on changed lines, on PRs. - Results are published in the job summary. - PRs fail if total coverage drops by more than 5%. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Lukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Signed-off-by: Lukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Signed-off-by: Lukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Signed-off-by: Lukasz Stolarczuk <lukasz.stolarczuk@intel.com>
lukaszstolarczuk
force-pushed
the
add-coverage
branch
from
October 29, 2026 15:05
c654235 to
ed5cb8d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Line coverage from tests and examples in tests.yml.
against the latest main and runs diff-cover on changed lines, on PRs.