Skip to content

⬆️ Update astral-sh/setup-uv action to v6#925

Merged
edenhaus merged 1 commit into
devfrom
renovate/astral-sh-setup-uv-6.x
May 17, 2025
Merged

⬆️ Update astral-sh/setup-uv action to v6#925
edenhaus merged 1 commit into
devfrom
renovate/astral-sh-setup-uv-6.x

Conversation

@renovate

@renovate renovate Bot commented Apr 25, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
astral-sh/setup-uv action major v5.4.2 -> v6.0.1

Release Notes

astral-sh/setup-uv (astral-sh/setup-uv)

v6.0.1: 🌈 Fix default cache dependency glob

Compare Source

Changes

The new default in v6 used illegal patterns and therefore didn't match requirements files. This is now fixed.

🐛 Bug fixes
🧰 Maintenance
⬆️ Dependency updates

v6.0.0: 🌈 activate-environment and working-directory

Compare Source

Changes

This version contains some breaking changes which have been gathering up for a while. Lets dive into them:

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):

- name: Install the latest version of uv and activate the environment
  uses: astral-sh/setup-uv@v6
  with:
    activate-environment: true
- run: uv pip install pip

The venv gets created by the uv venv command so the python version is controlled by the python-version input or the files pyproject.toml, uv.toml, .python-version in the working-directory.

Working Directory

The new input working-directory controls where we look for pyproject.toml, uv.toml and .python-version files
which are used to determine the version of uv and python to install.

It can also be used to control where the venv gets created.

- name: Install uv based on the config files in the working-directory
  uses: astral-sh/setup-uv@v6
  with:
    working-directory: my/subproject/dir

[!CAUTION]

The inputs pyproject-file and uv-file have been removed.

Default cache-dependency-glob

@​ssbarnea found out that the default cache-dependency-glob was not suitable for a lot of users.

The old default

cache-dependency-glob: |
  **/requirements*.txt
  **/uv.lock

is changed and should cover over 99.5% of use cases:

cache-dependency-glob: |
  **/*(requirements|constraints)*.(txt|in)
  **/pyproject.toml
  **/uv.lock

[!NOTE]

This shouldn't be a breaking change. The only thing you may notice is that your caches get invalidated once.

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: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov

codecov Bot commented Apr 25, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.63%. Comparing base (ba3b653) to head (1583432).
Report is 1 commits behind head on dev.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #925   +/-   ##
=======================================
  Coverage   93.63%   93.63%           
=======================================
  Files         129      129           
  Lines        4999     4999           
  Branches      325      325           
=======================================
  Hits         4681     4681           
  Misses        258      258           
  Partials       60       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq

codspeed-hq Bot commented Apr 25, 2025

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #925 will not alter performance

Comparing renovate/astral-sh-setup-uv-6.x (1583432) with dev (ba3b653)

Summary

✅ 6 untouched benchmarks

@renovate renovate Bot force-pushed the renovate/astral-sh-setup-uv-6.x branch 21 times, most recently from f61a296 to 5914e90 Compare April 30, 2025 11:00
@renovate renovate Bot force-pushed the renovate/astral-sh-setup-uv-6.x branch 4 times, most recently from 51b7385 to c2aa2bc Compare May 3, 2025 17:45
@renovate renovate Bot force-pushed the renovate/astral-sh-setup-uv-6.x branch 12 times, most recently from 5b53cf7 to eae410e Compare May 9, 2025 14:47
@renovate renovate Bot force-pushed the renovate/astral-sh-setup-uv-6.x branch 11 times, most recently from 677e642 to f1ea8e2 Compare May 16, 2025 19:57
@renovate renovate Bot force-pushed the renovate/astral-sh-setup-uv-6.x branch from f1ea8e2 to 1583432 Compare May 16, 2025 20:07
@edenhaus edenhaus merged commit 52de50e into dev May 17, 2025
27 checks passed
@edenhaus edenhaus deleted the renovate/astral-sh-setup-uv-6.x branch May 17, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant