@@ -22,7 +22,7 @@ You can optionally define a custom cache key suffix.
2222``` yaml
2323- name : Enable caching and define a custom cache key suffix
2424 id : setup-uv
25- uses : astral-sh/setup-uv@v6
25+ uses : astral-sh/setup-uv@v7
2626 with :
2727 enable-cache : true
2828 cache-suffix : " optional-suffix"
@@ -61,15 +61,15 @@ changes. If you use relative paths, they are relative to the repository root.
6161
6262` ` ` yaml
6363- name: Define a cache dependency glob
64- uses: astral-sh/setup-uv@v6
64+ uses: astral-sh/setup-uv@v7
6565 with:
6666 enable-cache: true
6767 cache-dependency-glob: "**/pyproject.toml"
6868` ` `
6969
7070` ` ` yaml
7171- name: Define a list of cache dependency globs
72- uses: astral-sh/setup-uv@v6
72+ uses: astral-sh/setup-uv@v7
7373 with:
7474 enable-cache: true
7575 cache-dependency-glob: |
@@ -79,15 +79,15 @@ changes. If you use relative paths, they are relative to the repository root.
7979
8080` ` ` yaml
8181- name: Define an absolute cache dependency glob
82- uses: astral-sh/setup-uv@v6
82+ uses: astral-sh/setup-uv@v7
8383 with:
8484 enable-cache: true
8585 cache-dependency-glob: "/tmp/my-folder/requirements*.txt"
8686` ` `
8787
8888` ` ` yaml
8989- name: Never invalidate the cache
90- uses: astral-sh/setup-uv@v6
90+ uses: astral-sh/setup-uv@v7
9191 with:
9292 enable-cache: true
9393 cache-dependency-glob: ""
@@ -100,7 +100,7 @@ By default, the cache will be restored.
100100
101101` ` ` yaml
102102- name: Don't restore an existing cache
103- uses: astral-sh/setup-uv@v6
103+ uses: astral-sh/setup-uv@v7
104104 with:
105105 enable-cache: true
106106 restore-cache: false
@@ -114,7 +114,7 @@ By default, the cache will be saved.
114114
115115` ` ` yaml
116116- name: Don't save the cache after the run
117- uses: astral-sh/setup-uv@v6
117+ uses: astral-sh/setup-uv@v7
118118 with:
119119 enable-cache: true
120120 save-cache: false
@@ -136,7 +136,7 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\setup-uv-cache` on
136136
137137` ` ` yaml
138138- name: Define a custom uv cache path
139- uses: astral-sh/setup-uv@v6
139+ uses: astral-sh/setup-uv@v7
140140 with:
141141 cache-local-path: "/path/to/cache"
142142` ` `
@@ -155,7 +155,7 @@ input.
155155
156156` ` ` yaml
157157- name: Don't prune the cache before saving it
158- uses: astral-sh/setup-uv@v6
158+ uses: astral-sh/setup-uv@v7
159159 with:
160160 enable-cache: true
161161 prune-cache: false
@@ -169,7 +169,7 @@ If you want to cache Python installs along with your dependencies, set the `cach
169169
170170` ` ` yaml
171171- name: Cache Python installs
172- uses: astral-sh/setup-uv@v6
172+ uses: astral-sh/setup-uv@v7
173173 with:
174174 enable-cache: true
175175 cache-python: true
@@ -182,7 +182,7 @@ If you want to ignore this, set the `ignore-nothing-to-cache` input to `true`.
182182
183183` ` ` yaml
184184- name: Ignore nothing to cache
185- uses: astral-sh/setup-uv@v6
185+ uses: astral-sh/setup-uv@v7
186186 with:
187187 enable-cache: true
188188 ignore-nothing-to-cache: true
0 commit comments