Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump astral-sh/setup-uv from 4 to 5 in /.github/workflows #19736

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 17, 2025

Bumps astral-sh/setup-uv from 4 to 5.

Release notes

Sourced from astral-sh/setup-uv's releases.

v5.2.1 🌈 Support toml spec 1.0.0

v5.2.0 introduced TOML parsing using @​iarna/toml because we already found out in astral-sh/ruff-action that toml has missing features.

As it turns out @​iarna/toml also is not fully TOML spec (1.0.0) compliant.

We now use smol-toml

🐛 Bug fixes

v5.0.0 🎄 Merry Christmas - Help fastly and users by default

Changes

This christmans 🎄 release is a bit early bit still full of presents 🎁 Since we are changing some of the defaults this can lead to breaking changes, thus the major version increase.

Here are the highlights:

Default to enable-cache: true on GitHub hosted runners

Did you know that that Fastly, the company hosting PyPI, theoretically has to pay $12.5 million per month and so far have served more than 2.41 exabytes of data? image

This is why they asked us to turn on caching by default. After weighting the pros and cons we decided to automatically upload the cache to the GitHub Actions cache when running on GitHub hosted runners. You can still disable that with enable-cache: false.

I remember when I first got into actions and didn't understand all the magic. I was baffled that some actions did something behind the scenes to make everything faster. I hope with this change we help a lot of users who are don't want to or are afraid to understand what enable-cache does.

Add **/requirements*.txt to default cache-dependency-glob

If caching is enabled we automatically searched for a uv.lock file and when this changed we knew we had to refresh the cache. A lot of projects don't use this but rather the good old requirements.txt. We now automatically search for both uv.lockand requirements*.txt (this means also requirements-test.txt, requirements-dev.txt, ...) files. You can change this with cache-dependency-glob

Auto activate venv when python-version is set

Some workflows install packages on the fly. This automatically works when using a python version that is already present on the runner. But if uv installs the version, e.g. because it is a free-threaded version or an old one, it is a standalone-build and installing packages "into the system" is not possible.

We now automatically create a new virtual environment with uv venv and activate it for the rest of the workflow if python-version is used. This means you can now do

- name: Install uv
  uses: astral-sh/setup-uv@auto-environment
  with:
    python-version: 3.13t
- run: uv pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython

🚨 Breaking changes

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Updated a GitHub Actions workflow to use the latest version of a dependency setup tool.

📊 Key Changes

  • 🔄 Upgraded astral-sh/setup-uv from version 4 to version 5 in the CI workflow.

🎯 Purpose & Impact

  • 🚀 Ensures compatibility with the latest features and improvements in the setup-uv tool.
  • 🛠️ Enhances the reliability and maintainability of the CI pipeline, benefiting developers with smoother workflows.
  • 🔒 Potentially improves security by using the most up-to-date version of the tool.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 4 to 5.
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@v4...v5)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from glenn-jocher March 17, 2025 04:42
@dependabot dependabot bot added the dependencies Dependencies and packages label Mar 17, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ws/astral-sh/setup-uv-5
@glenn-jocher glenn-jocher merged commit ef208f3 into main Mar 17, 2025
16 checks passed
@glenn-jocher glenn-jocher deleted the dependabot/github_actions/dot-github/workflows/astral-sh/setup-uv-5 branch March 17, 2025 13:15
@UltralyticsAssistant
Copy link
Member

✨ Great work, @dependabot[bot] and @glenn-jocher! This merge is a fantastic step forward. As Benjamin Franklin once said, “Without continual growth and progress, such words as improvement, achievement, and success have no meaning.”

By upgrading setup-uv in our CI workflow, you've not only ensured compatibility with the latest advancements but also strengthened the foundation for smoother, more reliable development processes. Your contributions continue to fuel innovation and excellence at Ultralytics. Thank you for your dedication! 🚀

Copy link

codecov bot commented Mar 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.86%. Comparing base (e19c64f) to head (2af03d5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19736      +/-   ##
==========================================
- Coverage   72.88%   72.86%   -0.03%     
==========================================
  Files         133      133              
  Lines       17735    17735              
==========================================
- Hits        12926    12922       -4     
- Misses       4809     4813       +4     
Flag Coverage Δ
Benchmarks 33.75% <ø> (-0.04%) ⬇️
GPU 37.50% <ø> (ø)
Tests 66.74% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependencies and packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants