Skip to content

ci: Enable uv caching in GitHub workflows#534

Closed
ValerianRey wants to merge 5 commits intomainfrom
ci-uv-caching
Closed

ci: Enable uv caching in GitHub workflows#534
ValerianRey wants to merge 5 commits intomainfrom
ci-uv-caching

Conversation

@ValerianRey
Copy link
Copy Markdown
Contributor

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

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>
@ValerianRey ValerianRey added the cc: ci Conventional commit type for changes to the CI (Github workflows and actions). label Jan 28, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

ValerianRey and others added 2 commits January 28, 2026 14:06
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>
@ValerianRey
Copy link
Copy Markdown
Contributor Author

Not working yet: only a tiny cache of metadata is saved so that packages still take a lot of time to build.

@ValerianRey
Copy link
Copy Markdown
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.

@ValerianRey ValerianRey deleted the ci-uv-caching branch January 28, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: ci Conventional commit type for changes to the CI (Github workflows and actions).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant