PYTHON-5956 Use shared python/setup action for CI setup - #2990
Draft
blink1073 wants to merge 4 commits into
Draft
Conversation
Replaces the uv, just, and dependency-install steps that eight jobs each carried with the shared drivers-github-tools action. TESTING ONLY: pinned to a fork SHA of the action so this can run before the action lands upstream. Repoint at mongodb-labs/...@V3 before merging. The static job still installs separately, because its lock check has to run before the install. Jobs that never use just, or that let a just recipe handle their own dependencies, pass run-install: false. The build job allows prereleases, which its beta Python needs now that Python comes from setup-python rather than uv.
allow-prereleases now defaults to true in the action, so the build job no longer passes it. Repoints at the action commit that drops exclude-newer, so this run exercises the version being merged.
run-install is off by default now, so the four jobs that need project dependencies ask for them and the four that do not say nothing. Repoints at the action commit that made the switch.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
PYTHON-5956
Adopts the shared
python/setupaction from mongodb-labs/drivers-github-tools#117, replacing the uv, just, and dependency install steps that eight jobs intest-python.ymleach carried.Important
Not mergeable yet: the action is pinned to a fork commit so this could run before mongodb-labs/drivers-github-tools#117 lands. Repoint all eight references to
mongodb-labs/drivers-github-tools/python/setup@v3once that PR merges and thev3tag moves.Changes in this PR
setup-python, with uv pointed at that interpreter.run-install: "true"; the other four say nothing.staticinstalls separately, since its lock check has to run before the install.Test Plan
CI-only, so the workflow running green is the test: latest run, dispatched on a fork where the pin resolves.
Interpreters were read from the logs per matrix entry rather than inferred from a green tick: CPython 3.10.20, free-threaded 3.13.15t, 3.15.0-rc.1, PyPy 7.3.23, and 3.9.25.
static'suv lock --checkpasses with noUV_EXCLUDE_NEWERset in any job, which an earlier version of the action would have broken.Checklist
Checklist for Author
Checklist for Reviewer