Skip to content

Check PyPi publishability in every PR#451

Merged
ppinchuk merged 10 commits into
mainfrom
ci/twine-check-strict
May 29, 2026
Merged

Check PyPi publishability in every PR#451
ppinchuk merged 10 commits into
mainfrom
ci/twine-check-strict

Conversation

@rajeee
Copy link
Copy Markdown
Collaborator

@rajeee rajeee commented May 27, 2026

Address #449
Run twine check --strict to catch potential issues in publishing to PyPi in every PR.
Only do the actual publish on release.

Copilot AI review requested due to automatic review settings May 27, 2026 23:08
@rajeee rajeee requested review from castelao and ppinchuk as code owners May 27, 2026 23:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the PyPI publishing workflow to validate that the Python package can be built and passes twine check --strict on every PR (and main push), while keeping actual publishing restricted to release flows.

Changes:

  • Add pull_request + push triggers (scoped to packaging-relevant paths) to build artifacts on every PR / main update.
  • Add a twine check --strict dist/* validation step after building wheels/sdist.
  • Gate the PyPI publish action behind specific event types.

Comment thread .github/workflows/publish_to_pypi.yml
Comment thread .github/workflows/publish_to_pypi.yml Outdated
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.44%. Comparing base (f88e93e) to head (6f8c235).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #451      +/-   ##
==========================================
+ Coverage   56.11%   56.44%   +0.32%     
==========================================
  Files          63       66       +3     
  Lines        6080     6279     +199     
  Branches      591      614      +23     
==========================================
+ Hits         3412     3544     +132     
- Misses       2598     2662      +64     
- Partials       70       73       +3     
Flag Coverage Δ
unittests 56.44% <ø> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/publish_to_pypi.yml
Comment on lines 37 to 40
permissions:
# IMPORTANT: write permission is mandatory for Trusted Publishing
id-token: write
contents: read
Copy link
Copy Markdown
Collaborator

@ppinchuk ppinchuk left a comment

Choose a reason for hiding this comment

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

Cool to see that it's already working as intended :P

Comment thread .github/workflows/publish_to_pypi.yml
@castelao castelao linked an issue May 28, 2026 that may be closed by this pull request
@rajeee rajeee requested a review from ppinchuk May 28, 2026 21:47
ppinchuk
ppinchuk previously approved these changes May 28, 2026
ppinchuk
ppinchuk previously approved these changes May 28, 2026
@ppinchuk ppinchuk merged commit 3a887f8 into main May 29, 2026
39 of 41 checks passed
@ppinchuk ppinchuk deleted the ci/twine-check-strict branch May 29, 2026 03:04
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.

PyPI error due to raw

5 participants