Skip to content

Add an integration test for publishing to pyx#16740

Merged
woodruffw merged 17 commits intomainfrom
ww/test-publish-pyx
Nov 18, 2025
Merged

Add an integration test for publishing to pyx#16740
woodruffw merged 17 commits intomainfrom
ww/test-publish-pyx

Conversation

@woodruffw
Copy link
Member

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-action shim.

Test Plan

See what happens.

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>
Signed-off-by: William Woodruff <william@astral.sh>
Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw temporarily deployed to uv-test-registries November 14, 2025 19:28 — with GitHub Actions Inactive
In principle, this should be sufficient with PYX_API_URL set.

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw marked this pull request as ready for review November 17, 2025 16:32
@woodruffw woodruffw requested a review from konstin November 17, 2025 16:32
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 }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Noting: I've added this secret to the integration test's environment.

Comment on lines +246 to +249
print(
f"Found versions at {url}: {', '.join(str(v) for v in versions)}",
file=sys.stderr,
)
Copy link
Member Author

Choose a reason for hiding this comment

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

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 🙂

Copy link
Member

Choose a reason for hiding this comment

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

Can you sort them an limit to the latest X versions?

Copy link
Member Author

Choose a reason for hiding this comment

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

I went ahead and removed it -- it would be easy to re-add if someone needs for debugging in the future 🙂

@woodruffw woodruffw temporarily deployed to uv-test-registries November 17, 2025 16:34 — with GitHub Actions Inactive
@woodruffw woodruffw self-assigned this Nov 17, 2025
@woodruffw woodruffw added the testing Internal testing of behavior label Nov 17, 2025
Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw merged commit f78ddf0 into main Nov 18, 2025
100 checks passed
@woodruffw woodruffw deleted the ww/test-publish-pyx branch November 18, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Internal testing of behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants