Skip to content

Commit 9c54f8d

Browse files
authored
Don't recursively scan for pyproject.toml when calculating the cache key (#945)
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 8069ac0 + b94cb70 commit 9c54f8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
uses: actions/cache@v4
160160
with:
161161
path: /tmp/pip-cache
162-
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
162+
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}
163163

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

0 commit comments

Comments
 (0)