@@ -37,7 +37,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
37
37
38
38
``` yaml
39
39
- name : Install the latest version of uv
40
- uses : astral-sh/setup-uv@v5
40
+ uses : astral-sh/setup-uv@v6
41
41
` ` `
42
42
43
43
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
@@ -50,7 +50,7 @@ For an example workflow, see
50
50
51
51
` ` ` yaml
52
52
- name: Install the latest version of uv
53
- uses: astral-sh/setup-uv@v5
53
+ uses: astral-sh/setup-uv@v6
54
54
with:
55
55
version: "latest"
56
56
` ` `
@@ -59,7 +59,7 @@ For an example workflow, see
59
59
60
60
` ` ` yaml
61
61
- name: Install a specific version of uv
62
- uses: astral-sh/setup-uv@v5
62
+ uses: astral-sh/setup-uv@v6
63
63
with:
64
64
version: "0.4.4"
65
65
` ` `
@@ -72,21 +72,21 @@ to install the latest version that satisfies the range.
72
72
73
73
` ` ` yaml
74
74
- name: Install a semver range of uv
75
- uses: astral-sh/setup-uv@v5
75
+ uses: astral-sh/setup-uv@v6
76
76
with:
77
77
version: ">=0.4.0"
78
78
` ` `
79
79
80
80
` ` ` yaml
81
81
- name: Pinning a minor version of uv
82
- uses: astral-sh/setup-uv@v5
82
+ uses: astral-sh/setup-uv@v6
83
83
with:
84
84
version: "0.4.x"
85
85
` ` `
86
86
87
87
` ` ` yaml
88
88
- name: Install a pep440-specifier-satisfying version of uv
89
- uses: astral-sh/setup-uv@v5
89
+ uses: astral-sh/setup-uv@v6
90
90
with:
91
91
version: ">=0.4.25,<0.5"
92
92
` ` `
@@ -99,7 +99,7 @@ This will override any python version specifications in `pyproject.toml` and `.p
99
99
100
100
` ` ` yaml
101
101
- name: Install the latest version of uv and set the python version to 3.13t
102
- uses: astral-sh/setup-uv@v5
102
+ uses: astral-sh/setup-uv@v6
103
103
with:
104
104
python-version: 3.13t
105
105
- run: uv pip install --python=3.13t pip
@@ -117,7 +117,7 @@ jobs:
117
117
steps:
118
118
- uses: actions/checkout@v4
119
119
- name: Install the latest version of uv and set the python version
120
- uses: astral-sh/setup-uv@v5
120
+ uses: astral-sh/setup-uv@v6
121
121
with:
122
122
python-version: ${{ matrix.python-version }}
123
123
- name: Test with python ${{ matrix.python-version }}
@@ -131,7 +131,7 @@ This allows directly using it in later steps:
131
131
132
132
` ` ` yaml
133
133
- name: Install the latest version of uv and activate the environment
134
- uses: astral-sh/setup-uv@v5
134
+ uses: astral-sh/setup-uv@v6
135
135
with:
136
136
activate-environment: true
137
137
- run: uv pip install pip
@@ -147,7 +147,7 @@ It also controls where [the venv gets created](#activate-environment).
147
147
148
148
` ` ` yaml
149
149
- name: Install uv based on the config files in the working-directory
150
- uses: astral-sh/setup-uv@v5
150
+ uses: astral-sh/setup-uv@v6
151
151
with:
152
152
working-directory: my/subproject/dir
153
153
` ` `
@@ -160,7 +160,7 @@ are automatically verified by this action. The sha256 hashes can be found on the
160
160
161
161
` ` ` yaml
162
162
- name: Install a specific version and validate the checksum
163
- uses: astral-sh/setup-uv@v5
163
+ uses: astral-sh/setup-uv@v6
164
164
with:
165
165
version: "0.3.1"
166
166
checksum: "e11b01402ab645392c7ad6044db63d37e4fd1e745e015306993b07695ea5f9f8"
@@ -182,7 +182,7 @@ You can optionally define a custom cache key suffix.
182
182
` ` ` yaml
183
183
- name: Enable caching and define a custom cache key suffix
184
184
id: setup-uv
185
- uses: astral-sh/setup-uv@v5
185
+ uses: astral-sh/setup-uv@v6
186
186
with:
187
187
enable-cache: true
188
188
cache-suffix: "optional-suffix"
@@ -217,15 +217,15 @@ changes. If you use relative paths, they are relative to the repository root.
217
217
218
218
` ` ` yaml
219
219
- name: Define a cache dependency glob
220
- uses: astral-sh/setup-uv@v5
220
+ uses: astral-sh/setup-uv@v6
221
221
with:
222
222
enable-cache: true
223
223
cache-dependency-glob: "**/pyproject.toml"
224
224
` ` `
225
225
226
226
` ` ` yaml
227
227
- name: Define a list of cache dependency globs
228
- uses: astral-sh/setup-uv@v5
228
+ uses: astral-sh/setup-uv@v6
229
229
with:
230
230
enable-cache: true
231
231
cache-dependency-glob: |
@@ -235,15 +235,15 @@ changes. If you use relative paths, they are relative to the repository root.
235
235
236
236
` ` ` yaml
237
237
- name: Define an absolute cache dependency glob
238
- uses: astral-sh/setup-uv@v5
238
+ uses: astral-sh/setup-uv@v6
239
239
with:
240
240
enable-cache: true
241
241
cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
242
242
` ` `
243
243
244
244
` ` ` yaml
245
245
- name: Never invalidate the cache
246
- uses: astral-sh/setup-uv@v5
246
+ uses: astral-sh/setup-uv@v6
247
247
with:
248
248
enable-cache: true
249
249
cache-dependency-glob: ""
@@ -258,7 +258,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\uv-tool-dir` on Wi
258
258
259
259
` ` ` yaml
260
260
- name: Define a custom uv cache path
261
- uses: astral-sh/setup-uv@v5
261
+ uses: astral-sh/setup-uv@v6
262
262
with:
263
263
cache-local-path: "/path/to/cache"
264
264
` ` `
@@ -277,7 +277,7 @@ input.
277
277
278
278
` ` ` yaml
279
279
- name: Don't prune the cache before saving it
280
- uses: astral-sh/setup-uv@v5
280
+ uses: astral-sh/setup-uv@v6
281
281
with:
282
282
enable-cache: true
283
283
prune-cache: false
@@ -290,7 +290,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
290
290
291
291
` ` ` yaml
292
292
- name: Ignore nothing to cache
293
- uses: astral-sh/setup-uv@v5
293
+ uses: astral-sh/setup-uv@v6
294
294
with:
295
295
enable-cache: true
296
296
ignore-nothing-to-cache: true
@@ -305,7 +305,7 @@ If you want to ignore this, set the `ignore-empty-workdir` input to `true`.
305
305
306
306
` ` ` yaml
307
307
- name: Ignore empty workdir
308
- uses: astral-sh/setup-uv@v5
308
+ uses: astral-sh/setup-uv@v6
309
309
with:
310
310
ignore-empty-workdir: true
311
311
` ` `
@@ -322,7 +322,7 @@ are not sufficient, you can provide a custom GitHub token with the necessary per
322
322
323
323
` ` ` yaml
324
324
- name: Install the latest version of uv with a custom GitHub token
325
- uses: astral-sh/setup-uv@v5
325
+ uses: astral-sh/setup-uv@v6
326
326
with:
327
327
github-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
328
328
` ` `
@@ -340,7 +340,7 @@ input:
340
340
341
341
` ` ` yaml
342
342
- name: Install the latest version of uv with a custom tool dir
343
- uses: astral-sh/setup-uv@v5
343
+ uses: astral-sh/setup-uv@v6
344
344
with:
345
345
tool-dir: "/path/to/tool/dir"
346
346
` ` `
@@ -359,7 +359,7 @@ If you want to change this behaviour (especially on self-hosted runners) you can
359
359
360
360
` ` ` yaml
361
361
- name: Install the latest version of uv with a custom tool bin dir
362
- uses: astral-sh/setup-uv@v5
362
+ uses: astral-sh/setup-uv@v6
363
363
with:
364
364
tool-bin-dir: "/path/to/tool-bin/dir"
365
365
` ` `
@@ -375,7 +375,7 @@ This action supports expanding the `~` character to the user's home directory fo
375
375
376
376
` ` ` yaml
377
377
- name: Expand the tilde character
378
- uses: astral-sh/setup-uv@v5
378
+ uses: astral-sh/setup-uv@v6
379
379
with:
380
380
cache-local-path: "~/path/to/cache"
381
381
tool-dir: "~/path/to/tool/dir"
@@ -408,7 +408,7 @@ For example:
408
408
- name: Checkout the repository
409
409
uses: actions/checkout@main
410
410
- name: Install the latest version of uv
411
- uses: astral-sh/setup-uv@v5
411
+ uses: astral-sh/setup-uv@v6
412
412
with:
413
413
enable-cache: true
414
414
- name: Test
@@ -420,7 +420,7 @@ To install a specific version of Python, use
420
420
421
421
` ` ` yaml
422
422
- name: Install the latest version of uv
423
- uses: astral-sh/setup-uv@v5
423
+ uses: astral-sh/setup-uv@v6
424
424
with:
425
425
enable-cache: true
426
426
- name: Install Python 3.12
@@ -439,7 +439,7 @@ output:
439
439
uses: actions/checkout@main
440
440
- name: Install the default version of uv
441
441
id: setup-uv
442
- uses: astral-sh/setup-uv@v5
442
+ uses: astral-sh/setup-uv@v6
443
443
- name: Print the installed version
444
444
run: echo "Installed uv version is ${{ steps.setup-uv.outputs.uv-version }}"
445
445
` ` `
0 commit comments