Skip to content

fix: drop invalid version-file arg from setup-uv#558

Merged
bschwedler merged 2 commits into
mainfrom
fix/uv-version-arg
May 29, 2026
Merged

fix: drop invalid version-file arg from setup-uv#558
bschwedler merged 2 commits into
mainfrom
fix/uv-version-arg

Conversation

@ianpittwood
Copy link
Copy Markdown
Contributor

@ianpittwood ianpittwood commented May 29, 2026

Summary

The astral-sh/setup-uv steps passed python-version-file, which is not a valid input for that action and produced "Unexpected input(s)" warnings in ci.yml and docs.yml.

The action's real 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 the argument serves no purpose. This drops it entirely and lets setup-uv install the default uv, resolving the warnings.

The actions/setup-python call (which legitimately uses python-version-file) is left unchanged.

Changes

  • .github/workflows/ci.yml — two setup-uv steps
  • .github/workflows/docs.yml — one setup-uv step

🤖 Generated with Claude Code

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>
@ianpittwood ianpittwood requested a review from bschwedler as a code owner May 29, 2026 16:38
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

Test Results

1 571 tests   1 571 ✅  8m 43s ⏱️
    1 suites      0 💤
    1 files        0 ❌

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>
@ianpittwood ianpittwood changed the title fix: use correct version-file arg for setup-uv fix: drop invalid version-file arg from setup-uv May 29, 2026
@bschwedler bschwedler added this pull request to the merge queue May 29, 2026
Merged via the queue into main with commit ff946ac May 29, 2026
24 checks passed
@bschwedler bschwedler deleted the fix/uv-version-arg branch May 29, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants