Releases: hynek/setup-cached-uv
v2.3.0
Changed
- The default value for
cache-dependency-path
is nowpyproject.toml
. This means that changes to packaging metadata of modern Python packages will invalidate the cache. #19
v2.2.1
v2.2.0
v2.1.0
v2.0.0
Added
-
Automatic cache pruning. If caching is active, we now automatically run
uv cache prune --ci
that shrinks the cache directory to only downloaded files. This make the cache smaller and therefore faster to save and restore. #9 -
The current calendar week is now added to the cache key by default. This means that the cache is refreshed weekly.
You can tweak the behavior using the
cache-date-suffix
input. Setting it to""
disables this feature, any other value is interpreted as an argument to thedate
CLI command. #11
Changed
-
The name of the workflow and of the current job are now part of the cache key. While this means that you can't share a cache between jobs, this should be only a minor inconvenience in practice and make it do the right thing in the vast majority of cases.
If this is a problem for you, please open an issue and tell us about your use-case. We can always add an option to set the whole key explicitly. #10
v1.3.0
v1.2.0
Added
-
Option to conditionally disable caching by setting
if-use-cache
to anything else than'true'
.uv is increadibly fast at installing wheels, while GitHub Actions's caching is rather slow. But it's still faster than building missing wheels for exotic platforms (say, PyPy).
This option allows you activate caching only when it's helpful. #6
v1.1.0
Added
- Support for multiple caches per workflow by adding two types of suffixes. #2
v1.0.0
Initial experimental release.
I'm currently in some kind of new-project-CI-jail so I gotta test in prod.