fix: drop invalid version-file arg from setup-uv#558
Merged
Conversation
The astral-sh/setup-uv action takes `version-file`, not `python-version-file`. Fixing this resolves the "Unexpected input(s)" warnings emitted for ci.yml and docs.yml. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Test Results1 571 tests 1 571 ✅ 8m 43s ⏱️ Results for commit 5249817. ♻️ This comment has been updated with latest results. |
The action's `version-file` input only pins the uv version itself, read from `[tool.uv] required-version` or a `.uv-version` file. We don't pin uv (posit-bakery/pyproject.toml has no [tool.uv] section), so pointing it at pyproject.toml serves no purpose. Drop it and let setup-uv install the default uv. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
bschwedler
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
astral-sh/setup-uvsteps passedpython-version-file, which is not a valid input for that action and produced "Unexpected input(s)" warnings inci.ymlanddocs.yml.The action's real
version-fileinput only pins the uv version itself (read from[tool.uv] required-versionor a.uv-versionfile). We don't pin uv —posit-bakery/pyproject.tomlhas no[tool.uv]section — so the argument serves no purpose. This drops it entirely and letssetup-uvinstall the default uv, resolving the warnings.The
actions/setup-pythoncall (which legitimately usespython-version-file) is left unchanged.Changes
.github/workflows/ci.yml— twosetup-uvsteps.github/workflows/docs.yml— onesetup-uvstep🤖 Generated with Claude Code