Skip to content

Add workflow to test package upload to TestPyPI#253

Open
Gitjay11 wants to merge 1 commit intoprecice:developfrom
Gitjay11:add-testpypi-workflow
Open

Add workflow to test package upload to TestPyPI#253
Gitjay11 wants to merge 1 commit intoprecice:developfrom
Gitjay11:add-testpypi-workflow

Conversation

@Gitjay11
Copy link

@Gitjay11 Gitjay11 commented Mar 15, 2026

Resolves #248

Description:

Currently, if the release workflow fails while uploading the package to PyPI, the GitHub release and tag have already been created, making corrections difficult.

This PR addresses this by adding a new, manually-triggered workflow ([test-pypi-publish.yml] that builds the package and uploads it to TestPyPI.

Changes:

  • Uses workflow_dispatch for manual triggering.
  • Mirrors the existing [release.yml] build & publish structure.
  • Uploads to TestPyPI (repository-url: https://test.pypi.org/legacy/) using Trusted Publishing and the testpypi GitHub environment.

@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-ajay-rajera-clean-multi-step-configuration/2839/2

@MakisH MakisH added the GSoC Contributed in the context of the Google Summer of Code label Mar 20, 2026
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.

Test package uploading to PyPI before releasing and creating a new version tag

3 participants