From e7a198761ddbf3e22f6b282023025575424f09ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Fri, 27 Sep 2024 21:46:28 +0200 Subject: [PATCH] fix: Invalidate uv cache based on pyproject.toml --- .github/workflows/ci.yml | 2 ++ project/.github/workflows/ci.yml.jinja | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 962b47c..f3ae944 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,7 @@ jobs: uses: astral-sh/setup-uv@v3 with: enable-cache: true + cache-dependency-glob: "**/pyproject.toml" - name: Install Copier run: pip install copier copier-templates-extensions @@ -115,6 +116,7 @@ jobs: uses: astral-sh/setup-uv@v3 with: enable-cache: true + cache-dependency-glob: "**/pyproject.toml" - name: Install Copier run: pip install copier copier-templates-extensions diff --git a/project/.github/workflows/ci.yml.jinja b/project/.github/workflows/ci.yml.jinja index e06e6e1..6e16a11 100644 --- a/project/.github/workflows/ci.yml.jinja +++ b/project/.github/workflows/ci.yml.jinja @@ -38,6 +38,7 @@ jobs: uses: astral-sh/setup-uv@v3 with: enable-cache: true + cache-dependency-glob: "**/pyproject.toml" - name: Install dependencies run: make setup @@ -127,6 +128,7 @@ jobs: uses: astral-sh/setup-uv@v3 with: enable-cache: true + cache-dependency-glob: "**/pyproject.toml" - name: Install dependencies env: