Skip to content

Commit

Permalink
Don't recursively scan for pyproject.toml when calculating the cache …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
llucax authored May 2, 2024
2 parents 8069ac0 + b94cb70 commit 9c54f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/pip-cache
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('**/pyproject.toml') }}
key: nox-${{ matrix.nox-session }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}

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

0 comments on commit 9c54f8d

Please sign in to comment.