Use latest uv release by default (#871)
This commit is contained in:
+1
-2
@@ -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
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user