Skip to content

Commit ef6bcdf

Browse files
authored
Fix default cache dependency glob (#388)
The new default in v6 used illegal patterns and therefore didn't match requirements files Fixes: #385
1 parent 9a31171 commit ef6bcdf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ jobs:
244244
exit 1
245245
fi
246246
shell: bash
247+
- run: uv sync
248+
working-directory: __tests__/fixtures/uv-project
247249

248250
test-activate-environment:
249251
runs-on: ${{ matrix.os }}

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ changes. If you use relative paths, they are relative to the repository root.
210210
> The default is
211211
> ```yaml
212212
> cache-dependency-glob: |
213-
> **/*(requirements|constraints)*.(txt|in)
213+
> **/*requirements*.txt
214+
> **/*requirements*.in
215+
> **/*constraints*.txt
216+
> **/*constraints*.in
214217
> **/pyproject.toml
215218
> **/uv.lock
216219
> ```

action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ inputs:
3131
"Glob pattern to match files relative to the repository root to control
3232
the cache."
3333
default: |
34-
**/*(requirements|constraints)*.(txt|in)
34+
**/*requirements*.txt
35+
**/*requirements*.in
36+
**/*constraints*.txt
37+
**/*constraints*.in
3538
**/pyproject.toml
3639
**/uv.lock
3740
cache-suffix:

0 commit comments

Comments
 (0)