On windows, uv tool install gives the warning:
warning: `C:\Users\runneradmin\.local\bin` is not on your PATH. To use installed tools, run `$env:PATH = "C:`\Users`\runneradmin`\.local`\bin;$env:PATH"`.
And then you can't use what it installs.
I think setup-uv should add ~/.local/bin to the path if it's not there and/or on Windows. For a composite action, it would be something like this:
- if: runner.os == "Windows"
shell: bash
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
That's the workaround I'm using in scientific-python/cookie#493.
On windows,
uv tool installgives the warning:And then you can't use what it installs.
I think setup-uv should add
~/.local/binto the path if it's not there and/or on Windows. For a composite action, it would be something like this:That's the workaround I'm using in scientific-python/cookie#493.