Repository navigation
ci: split PyPI build and publish into separate jobs - #1239
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1239 +/- ##
=======================================
Coverage 95.67% 95.67%
=======================================
Files 65 65
Lines 6753 6753
=======================================
Hits 6461 6461
Misses 292 292
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vdusek
marked this pull request as ready for review
November 18, 2026 13:33
B4nan
approved these changes
Nov 18, 2026
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.
publish_to_pypi.yamlnow has two jobs:buildchecks the ref, builds the distribution withapify/actions/prepare-pypi-distribution, verifies it withapify/actions/python-package-check, and uploadsdist/as an artifact. It has onlycontents: read.pypi_publishdownloads the artifact and runspypa/gh-action-pypi-publish. It is the only job withid-token: writeand thepypienvironment.Until now, one job did everything. The composite actions, the third-party actions they use by floating tags (for example
astral-sh/setup-uv@v7), and the dev dependencies installed byuv run poe install-devall ran withid-token: write, so any of them could request a PyPI token. PyPA recommends this two-job layout for Trusted Publishing. The Trusted Publisher config does not change, because the workflow file and the environment are the same.Related: apify/actions#52 pins the actions inside the composites.
✍️ Drafted by Claude Code