ci: Enable uv caching in GitHub workflows#534
Closed
ValerianRey wants to merge 5 commits intomainfrom
Closed
Conversation
Add `enable-cache: true` to all uv setup steps across workflows to speed up CI runs by caching downloaded packages and wheels. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
Add `cache-dependency-glob: "**/pyproject.toml"` to fix cache invalidation warning. Since this is a library without a lock file, the cache will invalidate when pyproject.toml changes. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Create `.github/actions/setup-uv` to factorize the repeated uv setup configuration across workflows. This includes the caching settings and makes it easier to maintain consistent uv setup. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
Author
|
Not working yet: only a tiny cache of metadata is saved so that packages still take a lot of time to build. |
Contributor
Author
|
This actually seems to be useless. The enable-cache param defaults to auto, which means true when running on github-hosted runner. Also, the default cache-dependency-glob already included pyproject.toml. So really this doesn't change anything. Also, caching the built wheels seems to just work (at least most of the time) since I updated to setup-uv@v7. |
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.
Add
enable-cache: trueto all uv setup steps across workflows to speed up CI runs by caching downloaded packages and wheels.Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com