Use latest uv release by default (#871)

This commit is contained in:
Glenn Jocher
2026-08-13 14:59:59 +02:00
committed by GitHub
parent 5bfc71f3d8
commit 581a3cb02d
2 changed files with 2 additions and 7 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
# Setup uv Action
Provides Ultralytics defaults for the official [uv setup action](https://github.com/astral-sh/setup-uv), with optional Python environment activation and dependency caching. Set `version: latest-known` to select the newest checksum-verified uv release without a manifest request.
Provides Ultralytics defaults for the official [uv setup action](https://github.com/astral-sh/setup-uv), using the latest uv release and optionally activating a Python environment and dependency caching.
## Usage
@@ -17,7 +17,6 @@ Provides Ultralytics defaults for the official [uv setup action](https://github.
| Input | Description | Required | Default |
| ----------------------- | ----------------------------------------- | -------- | ------------ |
| `version` | uv version or selector to install | No | - |
| `python-version` | Python version for uv commands | No | - |
| `activate-environment` | Create and activate a `.venv` environment | No | `false` |
| `enable-cache` | Cache uv downloads between workflow runs | No | `false` |
+1 -5
View File
@@ -3,10 +3,6 @@
name: "Setup uv"
description: "Install uv with optional Python environment activation and dependency caching"
inputs:
version:
description: "uv version or selector to install"
required: false
default: ""
python-version:
description: "Python version for uv commands"
required: false
@@ -33,7 +29,7 @@ runs:
steps:
- uses: astral-sh/[email protected]
with:
version: ${{ inputs.version }}
version: latest
python-version: ${{ inputs.python-version }}
activate-environment: ${{ inputs.activate-environment }}
enable-cache: ${{ inputs.enable-cache }}