Skip to content

Commit 1e99acc

Browse files
committed
Don't recursively scan for pyproject.toml when calculating the cache key
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. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 8dea6d2 commit 1e99acc

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)