Skip to content

Add TestPyPI publishing workflow for release PRs #108#223

Open
AdityaGupta716 wants to merge 3 commits intoprecice:developfrom
AdityaGupta716:testpypi-ci
Open

Add TestPyPI publishing workflow for release PRs #108#223
AdityaGupta716 wants to merge 3 commits intoprecice:developfrom
AdityaGupta716:testpypi-ci

Conversation

@AdityaGupta716
Copy link

Closes #108

Adds a new workflow that publishes to TestPyPI every time a PR targeting main is opened or updated.

Changes:

  • Added publish-to-testpypi.yml workflow that builds the package and publishes to TestPyPI on release PRs
  • Uses trusted publishing (id-token: write) same as the existing PyPI workflow
  • Only triggers on PRs to main, keeping it specific to release PRs

Note: A TestPyPI trusted publisher needs to be configured by a maintainer at test.pypi.org for this workflow to work.

@AdityaGupta716
Copy link
Author

AdityaGupta716 commented Feb 24, 2026

Hey @MakisH @IshaanDesai, plz review! TestPyPI trusted publisher needs to be configured at test.pypi.org by a maintainer for the workflow to actually run

@MakisH MakisH added the GSoC Contributed in the context of the Google Summer of Code label Feb 25, 2026
@precice-bot
Copy link

This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/gsoc-2026-aditya-gupta/2773/1

Copy link
Member

@IshaanDesai IshaanDesai left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. The intention of publishing on TestPyPI after releasing is to ensure that the release to PyPI is successful. Keeping this in mind, can you please check whether we can configure the release.yml workflow to run only after publish-to-testpypi.yml succeeds?

Also, please take a look at the release.yml workflow and use the latest versions of the actions.

@AdityaGupta716
Copy link
Author

@IshaanDesai hi, addressed both comments, Restructured release.yml so PyPI publish only runs after publish-to-testpypi succeeds via needs, and updated all action versions to match the rest of the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSoC Contributed in the context of the Google Summer of Code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need CI to test package publishing workflow

4 participants