Skip to content

Commit 99acb84

Browse files
authored
ci: use astral-sh/setup-uv (#493)
* ci: use astral-sh/setup-uv Signed-off-by: Henry Schreiner <[email protected]> * ci: add to path Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent b2c8259 commit 99acb84

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.github/workflows/reusable-cookie.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,15 @@ jobs:
4646
allow-prereleases: true
4747

4848
- name: Setup uv
49-
uses: yezz123/setup-uv@v4
50-
with:
51-
uv-venv: ".venv"
49+
uses: astral-sh/setup-uv@v2
50+
51+
- name: Add .local/bin to Windows PATH
52+
if: runner.os == 'Windows'
53+
shell: bash
54+
run: echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
5255

5356
- name: Install nox
54-
run: uv pip install nox
57+
run: uv tool install nox
5558

5659
- name: Test setuptools
5760
run: nox -s 'tests(setuptools, novcs)' -s 'tests(setuptools, vcs)'
@@ -117,12 +120,10 @@ jobs:
117120
allow-prereleases: true
118121

119122
- name: Setup uv
120-
uses: yezz123/setup-uv@v4
121-
with:
122-
uv-venv: ".venv"
123+
uses: astral-sh/setup-uv@v3
123124

124125
- name: Install nox
125-
run: uv pip install nox
126+
run: uv tool install nox
126127

127128
- name: Test setuptools
128129
run: |

docs/pages/guides/gha_basic.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@ And many other useful ones:
275275
Make a new PR with the current changes (more options than just using `gh`).
276276
You can even auto-merge PRs with `run: gh pr merge --merge --auto "1"`
277277
afterwards.
278-
- [yezz123/setup-uv](https://github.com/yezz123/setup-uv): Set up `uv`. Has a
279-
handy `uv-venv` option that will also set up and activate a virtual
280-
environment for you.
278+
- [astral-sh/setup-uv](https://github.com/astral/setup-uv): Set up `uv`.
281279
- [gautamkrishnar/keepalive-workflow](https://github.com/gautamkrishnar/keepalive-workflow):
282280
Keep GitHub actions alive for more than 60 days. Not usually needed if you've
283281
set up the other suggestions here, like dependabot and pre-commit.

docs/pages/guides/tasks.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,9 @@ You can install `uv` with `pipx`, `brew`, etc. If you want to use uv in GitHub
320320
Actions, one way is to use this:
321321

322322
```yaml
323-
- name: Setup uv
324-
uses: yezz123/setup-uv@v4
323+
- uses: astral-sh/setup-uv@v2
325324
```
326325

327-
You do not need to set `with: uv-venv: ".venv"` for `nox` to be able to use
328-
`uv`.
329-
330326
Check your jobs with `uv`; most things do not need to change. The main
331327
difference is `uv` doesn't install `pip` unless you ask it to. If you want to
332328
interact with uv, nox might be getting uv from it's environment instead of the

0 commit comments

Comments
 (0)