Skip to content

Commit 529d3dc

Browse files
authored
Don't recursively scan for pyproject.toml when calculating the cache key (#29)
We don't really need to scan for `pyproject.toml` files recursively, since we only have one in the root of the repository. This should make the cache key calculation more efficient and less error prone, as when using qemu, there are some files that are not accessible and the hash calculation fails.
2 parents 69a72ec + 1048308 commit 529d3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
uses: actions/cache@v4
162162
with:
163163
path: /tmp/pip-cache
164-
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
164+
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
165165

166166
# This ensures that the docker container has access to the pip cache.
167167
# Changing the user in the docker-run step causes it to fail due to

0 commit comments

Comments
 (0)