Skip to content

Commit 10475d3

Browse files
committed
ci: add pyproject.toml and src to cache key hash
Include pyproject.toml and src/**/*.py in the cache key hash since source changes affect the editable install derivation.
1 parent 507dbae commit 10475d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/setup-nix/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
- name: Cache Nix store
1717
uses: nix-community/cache-nix-action@b426b118b6dc86d6952988d396aa7c6b09776d08 # v7
1818
with:
19-
primary-key: nix-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('flake.lock', 'uv.lock') }}
19+
primary-key: nix-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('flake.lock', 'uv.lock', 'pyproject.toml', 'src/**/*.py') }}
2020
restore-prefixes-first-match: |
2121
nix-${{ runner.os }}-${{ inputs.python-version }}-
2222
nix-${{ runner.os }}-

0 commit comments

Comments
 (0)