chore(deps): update astral-sh/setup-uv action to v6 #20
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.
This PR contains the following updates:
v5.4.2
->v6.0.0
Release Notes
astral-sh/setup-uv (astral-sh/setup-uv)
v6.0.0
: 🌈 activate-environment and working-directoryCompare Source
Changes
This version contains some breaking changes which have been gathering up for a while. Lets dive into them:
cache-dependency-glob
Activate environment
In previous versions using the input
python-version
automatically activated a venv at the repository root.This led to some unwanted side-effects, was sometimes unexpected and not flexible enough.
The venv activation is now explicitly controlled with the new input
activate-environment
(false by default):The venv gets created by the
uv venv
command so the python version is controlled by thepython-version
input or the filespyproject.toml
,uv.toml
,.python-version
in theworking-directory
.Working Directory
The new input
working-directory
controls where we look forpyproject.toml
,uv.toml
and.python-version
fileswhich are used to determine the version of uv and python to install.
It can also be used to control where the venv gets created.
Default
cache-dependency-glob
@ssbarnea found out that the default
cache-dependency-glob
was not suitable for a lot of users.The old default
is changed and should cover over 99.5% of use cases:
Use default cache dir on self hosted runners
The directory where uv stores its cache was always set to a directory in
RUNNER_TEMP
. For self-hosted runners this made no sense as this gets cleaned after every run and led to slower runs than necessary.On self-hosted runners
UV_CACHE_DIR
is no longer set and the default cache directory is used instead.🚨 Breaking changes
🧰 Maintenance
📚 Documentation
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.