feat: add non-gating pytest-cov coverage reporting to CI#165
Open
feat: add non-gating pytest-cov coverage reporting to CI#165
Conversation
6 tasks
Agent-Logs-Url: https://github.com/dgenio/contextweaver/sessions/6f518117-ff34-49ee-876b-645f2914a062 Co-authored-by: dgenio <12731907+dgenio@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test coverage reporting to CI without gating
feat: add non-gating pytest-cov coverage reporting to CI
Apr 14, 2026
There was a problem hiding this comment.
Pull request overview
Adds non-gating code coverage reporting to the project’s test runs to improve visibility into untested areas without changing CI pass/fail criteria.
Changes:
- Add
pytest-covto thedevoptional dependency group and introduce baselinecoverage.pyconfiguration inpyproject.toml. - Update
make testto run pytest with--cov=contextweaver --cov-report=term-missing. - Update GitHub Actions CI Test step to run pytest with the same coverage flags.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pyproject.toml |
Adds pytest-cov dev extra and configures coverage run/report behavior. |
Makefile |
Runs tests with terminal missing-line coverage output. |
.github/workflows/ci.yml |
Enables coverage reporting in CI logs while keeping tests non-gating. |
Comment on lines
12
to
+13
| test: | ||
| pytest -q | ||
| pytest --cov=contextweaver --cov-report=term-missing -q |
There was a problem hiding this comment.
Pull request overview
Adds non-gating coverage visibility to the project’s test workflows by wiring pytest-cov into local (make test) and CI pytest invocations, plus adding baseline coverage.py configuration in pyproject.toml.
Changes:
- Add
pytest-covto thedevextra and configure coverage run/report settings inpyproject.toml. - Update
make testto emit terminal missing-line coverage output forcontextweaver. - Update CI test step to run pytest with the same coverage flags.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pyproject.toml |
Adds pytest-cov dev dependency and coverage configuration sections. |
Makefile |
Changes test target to run pytest with coverage reporting. |
.github/workflows/ci.yml |
Updates CI test command to include coverage reporting flags. |
|
|
||
| test: | ||
| pytest -q | ||
| pytest --cov=contextweaver --cov-report=term-missing -q |
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.
Summary
Closes #90
No coverage measurement existed — no visibility into which modules lacked tests, and no way for agents to detect coverage holes after changes. Adds report-only coverage via
pytest-cov(prints to CI logs, no fail-under threshold).Changes
pyproject.toml— addspytest-cov>=5.0to[project.optional-dependencies] dev; adds[tool.coverage.run]and[tool.coverage.report]config sectionsMakefile— updatestesttarget:pytest --cov=contextweaver --cov-report=term-missing -q.github/workflows/ci.yml— updates Test step with the same--covflagsCoverage config:
Current baseline: 86% total coverage across 536 tests.
Checklist
make cipasses locally (fmt + lint + type + test + example + demo)CHANGELOG.mdupdated under## [Unreleased]Notes for reviewers
Pure infra change — no library code touched. No
--cov-fail-underis set intentionally; this is visibility-only and must not gate CI green status.