Skip to content

Commit 36cd208

Browse files
authored
Don't recursively scan for pyproject.toml when calculating the cache key (#44)
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.
2 parents 84d5501 + 685c90a commit 36cd208

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ jobs:
115115
runs-on: ${{ matrix.os }}
116116

117117
steps:
118-
- name: Early failure
119-
run: "exit 1"
120-
121118
- name: Fetch sources
122119
uses: actions/checkout@v4
123120

@@ -162,7 +159,7 @@ jobs:
162159
uses: actions/cache@v4
163160
with:
164161
path: /tmp/pip-cache
165-
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') }}
166163

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

0 commit comments

Comments
 (0)