Skip to content

Add PyPI publish workflow with Provenance - #179

Merged
jamesabel merged 2 commits into
masterfrom
add-pypi-publish-workflow
Nov 15, 2026
Merged

jamesabel merged 2 commits into
masterfrom
add-pypi-publish-workflow

Conversation

@jamesabel

Copy link
Copy Markdown
Owner

Summary

  • Add .github/workflows/publish.yml: on a published GitHub release (or a manual run) it builds the distribution and uploads it through the PyPI trusted publisher with pypa/gh-action-pypi-publish, which attaches Provenance (PEP 740 attestations). Uploads from a workstation cannot produce Provenance.

The trusted publisher (jamesabel/pytest-fly, publish.yml, environment pypi) is already registered on PyPI.

Testing

The workflow's build step was run locally on this branch with Python 3.14 and twine check passes. The upload itself is only exercised by the next release.

🤖 Generated with Claude Code

jamesabel and others added 2 commits November 14, 2026 12:45
Upload releases from GitHub Actions through the PyPI trusted publisher so
the files carry Provenance (PEP 740 attestations).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Releases are uploaded by .github/workflows/publish.yml so they carry
Provenance; a workstation upload with twine cannot produce it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.70%. Comparing base (31df28e) to head (a241b2d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #179   +/-   ##
=======================================
  Coverage   85.70%   85.70%           
=======================================
  Files          74       74           
  Lines        6451     6451           
=======================================
  Hits         5529     5529           
  Misses        922      922           

☔ View full report in Codecov by Harness.
📢 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.

@jamesabel
jamesabel merged commit baf61bb into master Nov 15, 2026
3 checks passed
@jamesabel
jamesabel deleted the add-pypi-publish-workflow branch November 15, 2026 01:51
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