Skip to content

Commit

Permalink
fix: Invalidate uv cache based on pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 27, 2024
1 parent 078fd1d commit 9eea3f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: project/pyproject.toml.jinja
cache-suffix: ${{ matrix.os }}-py${{ matrix.python-version }}

- name: Install Copier
run: pip install copier copier-templates-extensions
Expand Down Expand Up @@ -115,6 +117,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: project/pyproject.toml.jinja

- name: Install Copier
run: pip install copier copier-templates-extensions
Expand Down
3 changes: 3 additions & 0 deletions project/.github/workflows/ci.yml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -127,6 +128,8 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
cache-suffix: {% raw %}${{ matrix.os }}-py${{ matrix.python-version }}{% endraw %}

- name: Install dependencies
env:
Expand Down

0 comments on commit 9eea3f8

Please sign in to comment.