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 2024-12-08 17:51:13 +01:00 committed by GitHub
parent bdcda7e77f
commit be4207d29e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 47 additions and 3 deletions

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