Skip to content

Add Codecov upload and PyPI release workflow - #2

Merged
Hendrik-code merged 1 commit into
mainfrom
feat/ci-codecov-pypi
Oct 5, 2026
Merged

Hendrik-code merged 1 commit into
mainfrom
feat/ci-codecov-pypi

Conversation

@Hendrik-code

Copy link
Copy Markdown
Owner

The README badges for coverage and released version need something behind them. Two pieces:

  • tests.yml runs the suite under coverage and uploads coverage.xml to Codecov from the 3.11 matrix entry only; the matrix differs in interpreter version, not in which lines execute, so three uploads would be redundant. Coverage scope lives in pyproject.toml and omits the vendored MONAI transforms, matching their existing ruff and mypy exemptions.
  • python-publish.yml builds an sdist and wheel on a v* tag push, which is the release step CONTRIBUTING.md already documents, and publishes via PyPI Trusted Publishing so there is no long-lived API token in the repo secrets.

Codecov thresholds are informational: at 32% line coverage a hard gate would only block pull requests that are not the cause.

Both badges render as "unknown"/"not found" until the repository is added on Codecov and the first release is published. CONTRIBUTING.md documents both one-time setup steps.

The README badges for coverage and released version need something behind
them. Two pieces:

- tests.yml runs the suite under `coverage` and uploads coverage.xml to
  Codecov from the 3.11 matrix entry only; the matrix differs in interpreter
  version, not in which lines execute, so three uploads would be redundant.
  Coverage scope lives in pyproject.toml and omits the vendored MONAI
  transforms, matching their existing ruff and mypy exemptions.
- python-publish.yml builds an sdist and wheel on a `v*` tag push, which is
  the release step CONTRIBUTING.md already documents, and publishes via PyPI
  Trusted Publishing so there is no long-lived API token in the repo secrets.

Codecov thresholds are informational: at 32% line coverage a hard gate would
only block pull requests that are not the cause.

Both badges render as "unknown"/"not found" until the repository is added on
Codecov and the first release is published. CONTRIBUTING.md documents both
one-time setup steps.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Hendrik-code
Hendrik-code merged commit 4ec1472 into main Oct 5, 2026
5 checks passed
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.

1 participant