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

Use newer uv features to simplify some CI jobs #503

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

AlexWaygood
Copy link
Collaborator

  • Install uv using the new GitHub action rather than curl
  • Remove the step installing Python: uv will now install Python itself if Python isn't already installed (using the --python flag to uv run)

A (subjective) downside of using uv run to run these commands in CI is that if you just copy-and-paste the commands from the GitHub workflow and run them locally, it creates a uv.lock file (so you have a dirty commit history). I don't really feel like we particularly need a lockfile for this project -- it feels like it would just add complications without really giving us anything -- so I'm not sure I'd want to commit a uv.lock file into this repo. (Others might feel differently.)

This comment has been minimized.

@AlexWaygood
Copy link
Collaborator Author

looks like it cuts about 5s off the CI times for darwin/linux, and about 10s off the CI times for Windows.

@AlexWaygood AlexWaygood marked this pull request as ready for review September 23, 2024 19:09
.github/workflows/check.yml Outdated Show resolved Hide resolved
.github/workflows/check.yml Outdated Show resolved Hide resolved
AlexWaygood and others added 2 commits September 23, 2024 13:10
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Copy link

This change has no effect on typeshed. 🤖🎉

@AlexWaygood AlexWaygood merged commit 06a2682 into PyCQA:main Sep 23, 2024
20 checks passed
@AlexWaygood AlexWaygood deleted the use-uv branch September 23, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants