Add TestPyPI support for pre-releases #236
Draft
saiboddu759 wants to merge 1 commit intoNike-Inc:mainfrom
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 97.59% 97.59%
=======================================
Files 27 27
Lines 2826 2826
=======================================
Hits 2758 2758
Misses 68 68 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
@saiboddu759 Are these usernames and passwords configured in Cerberus? TEST_PYPI_USER & TEST_PYPI_PASSWORD ? |
rvprimer
approved these changes
Nov 10, 2025
Collaborator
No they should be in github secrets |
liorz901
approved these changes
Nov 24, 2025
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.
Description
PR updates the GitHub Actions workflow (
onpush.yml) to support publishing pre-release versions to TestPyPI before releasing to production PyPI. The workflow now:publishedandprereleasedrelease typesRelated Issue
This enhancement allows testing package releases on TestPyPI before pushing to production PyPI, reducing the risk of errors in production releases.
Motivation and Context
Currently, releases go directly to production PyPI, which means any issues with the package or metadata aren't caught until after publication. This change introduces a testing phase where:
This follows Python packaging best practices and provides a safety net for the release process.
How Has This Been Tested?
github.event.action)TEST_PYPI_USERNAMEandTEST_PYPI_PASSWORDTesting Steps:
pip install --index-url https://test.pypi.org/simple/ spark-expectationsScreenshots (if appropriate):
Types of changes
Checklist: