Detect required-version from config file (#233)

1. If defined use version input
2. If defined use uv-file input
3. If defined use pyproject-file input
4. Search for required-version in uv.toml in repo root
5. Search for required-version in pyproject.toml in repo root
6. Use latest

Closes: #215
This commit is contained in:
Kevin Stillhammer 2025-01-13 15:24:25 +01:00 committed by GitHub
parent d577e74f98
commit 5ce9ee0011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 2436 additions and 19 deletions

View file

@ -4,8 +4,14 @@ description:
author: "astral-sh"
inputs:
version:
description: "The version of uv to install"
default: "latest"
description: "The version of uv to install e.g., `0.5.0` Defaults to the version in pyproject.toml or 'latest'."
default: ""
pyproject-file:
description: "Path to a pyproject.toml"
default: ""
uv-file:
description: "Path to a uv.toml"
default: ""
python-version:
description: "The version of Python to set UV_PYTHON to"
required: false
@ -18,7 +24,7 @@ inputs:
required: false
default: ${{ github.token }}
enable-cache:
description: "Enable caching of the uv cache"
description: "Enable uploading of the uv cache"
default: "auto"
cache-dependency-glob:
description: