Add **/requirements*.txt to default cache-dependency-glob (#185)

Contributes to: https://github.com/astral-sh/setup-uv/issues/181
This commit is contained in:
Kevin Stillhammer authored and GitHub committed 2024-12-08 17:51:13 +01:00
1 parent bdcda7e77f
commit be4207d29e
5 files changed
+47 -3

No files matched your search

+7 -2
View File
@@ -154,14 +154,19 @@ changes. If you use relative paths, they are relative to the repository root.
> [!NOTE]
>
> The default is `**/uv.lock`.
> The default is
> ```yaml
> cache-dependency-glob: |
> **/requirements*.txt
> **/uv.lock
> ```
```yaml
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "**/requirements*.txt"
cache-dependency-glob: "**/pyproject.toml"
```
```yaml