Add an integration test for publishing to pyx#16740
Merged
Conversation
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
woodruffw
commented
Nov 14, 2025
woodruffw
commented
Nov 14, 2025
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
woodruffw
commented
Nov 14, 2025
woodruffw
commented
Nov 14, 2025
In principle, this should be sufficient with PYX_API_URL set. Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
woodruffw
commented
Nov 17, 2025
woodruffw
commented
Nov 17, 2025
| UV_TEST_PUBLISH_GITLAB_PAT: ${{ secrets.UV_TEST_PUBLISH_GITLAB_PAT }} | ||
| UV_TEST_PUBLISH_CODEBERG_TOKEN: ${{ secrets.UV_TEST_PUBLISH_CODEBERG_TOKEN }} | ||
| UV_TEST_PUBLISH_CLOUDSMITH_TOKEN: ${{ secrets.UV_TEST_PUBLISH_CLOUDSMITH_TOKEN }} | ||
| UV_TEST_PUBLISH_PYX_TOKEN: ${{ secrets.UV_TEST_PUBLISH_PYX_TOKEN }} |
Member
Author
There was a problem hiding this comment.
Noting: I've added this secret to the integration test's environment.
woodruffw
commented
Nov 17, 2025
scripts/publish/test_publish.py
Outdated
Comment on lines
+246
to
+249
| print( | ||
| f"Found versions at {url}: {', '.join(str(v) for v in versions)}", | ||
| file=sys.stderr, | ||
| ) |
Member
Author
There was a problem hiding this comment.
I found this useful and it doesn't add much to the log volume (since we already emit a lot), but I'm happy to remove if it's too noisy for others 🙂
Member
There was a problem hiding this comment.
Can you sort them an limit to the latest X versions?
Member
Author
There was a problem hiding this comment.
I went ahead and removed it -- it would be easy to re-add if someone needs for debugging in the future 🙂
konstin
approved these changes
Nov 18, 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.
Summary
This adds an integration test for publishing to pyx (the staging instance) using an API token.
Separately I need to figure out a good testing strategy for pyx with Trusted Publishing, although that may be blocked on an approach that doesn't involve the current temporary
pyx-auth-actionshim.Test Plan
See what happens.