Skip to content

✨ feat(action): add uv-install input and auto-detect uvx - #24

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:8
Feb 27, 2026
Merged

✨ feat(action): add uv-install input and auto-detect uvx#24
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:8

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Feb 27, 2026

Copy link
Copy Markdown
Member

The action always hardcoded uv run regardless of whether a pyproject.toml existed, which is semantically wrong — uvx is the right tool for running standalone tools without a project context. Users who already configured uv externally (with a specific Python version, caching, etc.) also had no way to skip the redundant setup-uv step.

✨ A new uv-install input controls uv installation with three modes: 'auto' (default) detects whether uv is already available and skips installation if so, 'true' always installs, and 'false' never installs. The run step now auto-detects whether to use uv run or uvx based on pyproject.toml presence, so repos without a project file get the correct isolated tool execution.

This is fully backward compatible — the 'auto' default preserves existing behavior, and the pyproject.toml detection matches what was already implicitly happening.

Closes #6

@gaborbernat gaborbernat added the enhancement New feature or request label Feb 27, 2026
The action always installed uv and used `uv run`, which is semantically
wrong when no pyproject.toml exists and prevents users who already
configured uv externally from skipping redundant setup.

Add a `uv-install` input (default true) to let users opt out of the
built-in setup-uv step. Auto-detect whether to use `uv run` or `uvx`
based on pyproject.toml presence so repos without a project file get
the correct isolated tool execution. Add CI jobs covering both paths
and the external-uv scenario.
@gaborbernat
gaborbernat merged commit 1df94c3 into tox-dev:main Feb 27, 2026
4 checks passed
@gaborbernat
gaborbernat deleted the 8 branch July 10, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support more uv invocations

1 participant