Skip to content

ci: split PyPI build and publish into separate jobs - #1239

Merged
B4nan merged 1 commit into
masterfrom
ci/split-pypi-build-and-publish
Nov 18, 2026
Merged

B4nan merged 1 commit into
masterfrom
ci/split-pypi-build-and-publish

Conversation

@vdusek

@vdusek vdusek commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

publish_to_pypi.yaml now has two jobs:

  • build checks the ref, builds the distribution with apify/actions/prepare-pypi-distribution, verifies it with apify/actions/python-package-check, and uploads dist/ as an artifact. It has only contents: read.
  • pypi_publish downloads the artifact and runs pypa/gh-action-pypi-publish. It is the only job with id-token: write and the pypi environment.

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 by uv run poe install-dev all ran with id-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

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Nov 18, 2026
@vdusek vdusek self-assigned this Nov 18, 2026
@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.67%. Comparing base (1c65eea) to head (6ad37ac).

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           
Flag Coverage Δ
integration 90.71% <ø> (-0.20%) ⬇️
unit 91.33% <ø> (ø)

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

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek
vdusek marked this pull request as ready for review November 18, 2026 13:33
@vdusek
vdusek requested a review from B4nan November 18, 2026 13:33
@B4nan
B4nan merged commit 55a242f into master Nov 18, 2026
38 checks passed
@B4nan
B4nan deleted the ci/split-pypi-build-and-publish branch November 18, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants