Sourced from astral-sh/setup-uv's releases.
v7.0.0 🌈 node24 and a lot of bugfixes
Changes
This release comes with a load of bug fixes and a speed up. Because of switching from node20 to node24 it is also a breaking change. If you are running on GitHub hosted runners this will just work, if you are using self-hosted runners make sure, that your runners are up to date. If you followed the normal installation instructions your self-hosted runner will keep itself updated.
This release also removes the deprecated input
server-urlwhich was used to download uv releases from a different server. The manifest-file input supersedes that functionality by adding a flexible way to define available versions and where they should be downloaded from.Fixes
- The action now respects when the environment variable
UV_CACHE_DIRis already set and does not overwrite it. It now also finds cache-dir settings in config files if you set them.- Some users encountered problems that cache pruning took forever because they had some
uvprocesses running in the background. Starting with uv version0.8.24this action usesuv cache prune --ci --forceto ignore the running processes- If you just want to install uv but not have it available in path, this action now respects
UV_NO_MODIFY_PATH- Some other actions also set the env var
UV_CACHE_DIR. This action can now deal with that but as this could lead to unwanted behavior in some edgecases a warning is now displayed.Improvements
If you are using minimum version specifiers for the version of uv to install for example
[tool.uv] required-version = ">=0.8.17"This action now detects that and directly uses the latest version. Previously it would download all available releases from the uv repo to determine the highest matching candidate for the version specifier, which took much more time.
If you are using other specifiers like
0.8.xthis action still needs to download all available releases because the specifier defines an upper bound (not 0.9.0 or later) and "latest" would possibly not satisfy that.🚨 Breaking changes
- Use node24 instead of node20
@eifinger(#608)- Remove deprecated input server-url
@eifinger(#607)🐛 Bug fixes
- Respect UV_CACHE_DIR and cache-dir
@eifinger(#612)- Use --force when pruning cache
@eifinger(#611)- Respect UV_NO_MODIFY_PATH
@eifinger(#603)- Warn when
UV_CACHE_DIRhas changed@jamesbraza(#601)🚀 Enhancements
- Shortcut to latest version for minimum version specifier
@eifinger(#598)🧰 Maintenance
- Bump dependencies
@eifinger(#613)- Fix test-uv-no-modify-path
@eifinger(#604)
... (truncated)
3259c62
Bump deps (#633)bf8e8ed
Split up documentation (#632)9c6b5e9
Add resolution-strategy input to support oldest compatible version
selection ...a5129e9
Add copilot-instructions.md (#630)d18bcc7
Add value of UV_PYTHON_INSTALL_DIR to path (#628)bd1f875
Set output venv when activate-environment is used (#627)1a91c38
chore: update known checksums for 0.9.2 (#626)c79f606
chore: update known checksums for 0.9.1 (#625)e0249f1
Fall back to PR for updating known versions (#623)6d2eb15
Cache python installs (#621)