Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCHEMATIC-210] Updates publish.yml for Test PyPi deployments (#1559) #1560

Merged
merged 22 commits into from
Dec 17, 2024

Conversation

BWMac
Copy link
Collaborator

@BWMac BWMac commented Dec 16, 2024

Description:

This PR updates publish.yml to automatically publish releases to test pypi (on pre-release) and to pypi (on normal release). I also added "trusted publisher" relationships (OIDC) between this repo and both pypi repos so permanent access tokens are no longer required for the CI pipeline to run. While I was working on this, I was having issues with the update_version.py file and @thomasyu888 suggested deprecating it for simplicity so I did that. We will need to update the version in pyproject.toml when publishing a release from now on (which is what the release instructions already said to do). I tested the workflow on both pre-releases and full releases and it behaved as expected. I subsequently deleted the release I made to pypi prod, but here is the release I made on test pypi.

* updates pypi publishing workflow

* specify python version explicitly
@BWMac BWMac marked this pull request as ready for review December 17, 2024 19:53
@BWMac BWMac requested a review from a team as a code owner December 17, 2024 19:53
@BryanFauble
Copy link
Collaborator

Is there any documentation update needed to note the version update changes on release? I think we had a confluence page for the release process, contributing.md or the main Readme may also need updates

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM! Cool trick with the repository-url. I'll leave it to @linglp / @GiaJordan / @BryanFauble for final review.

@BWMac BWMac requested a review from linglp December 17, 2024 20:24
Copy link
Contributor

@linglp linglp left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for all the hard work!

Copy link
Contributor

@GiaJordan GiaJordan left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @BWMac

@BWMac BWMac merged commit 951cd74 into develop Dec 17, 2024
5 checks passed
@BWMac BWMac deleted the SCHEMATIC-210-dev branch December 17, 2024 20:53
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.

5 participants