From ef6bcdff59f18584d3ff2d6733fe1ffb9b7545c1 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Tue, 29 Apr 2025 22:42:06 +0200 Subject: [PATCH] Fix default cache dependency glob (#388) The new default in v6 used illegal patterns and therefore didn't match requirements files Fixes: #385 --- .github/workflows/test.yml | 2 ++ README.md | 5 ++++- action.yml | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3616d0c..8ddf39b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -244,6 +244,8 @@ jobs: exit 1 fi shell: bash + - run: uv sync + working-directory: __tests__/fixtures/uv-project test-activate-environment: runs-on: ${{ matrix.os }} diff --git a/README.md b/README.md index 37693f6..1c89db5 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,10 @@ changes. If you use relative paths, they are relative to the repository root. > The default is > ```yaml > cache-dependency-glob: | -> **/*(requirements|constraints)*.(txt|in) +> **/*requirements*.txt +> **/*requirements*.in +> **/*constraints*.txt +> **/*constraints*.in > **/pyproject.toml > **/uv.lock > ``` diff --git a/action.yml b/action.yml index 135c03e..6882851 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,10 @@ inputs: "Glob pattern to match files relative to the repository root to control the cache." default: | - **/*(requirements|constraints)*.(txt|in) + **/*requirements*.txt + **/*requirements*.in + **/*constraints*.txt + **/*constraints*.in **/pyproject.toml **/uv.lock cache-suffix: