Skip to content

Commit e5fd00e

Browse files
authored
Revert caching
1 parent e22550e commit e5fd00e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/actions/common-setup/action.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,12 @@ runs:
3434
# Cache your dependencies (i.e. all the stuff in your `pyproject.toml`). Note the cache
3535
# key: if you're using multiple Python versions, or multiple OSes, you'd need to include
3636
# them in the cache key. I'm not, so it can be simple and just depend on the poetry.lock.
37-
- name: Cache Linux deps
38-
if: startsWith(runner.os, 'Linux')
39-
id: cache-deps-linux
37+
- name: cache deps
38+
id: cache-deps
4039
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
4140
with:
4241
path: ~/.cache/pypoetry
43-
key: pydeps-${{ inputs.python_version }}-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
44-
45-
- name: Cache Windows deps
46-
if: startsWith(runner.os, 'Windows')
47-
id: cache-deps-windows
48-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
49-
with:
50-
path: ~/Library/Caches/pypoetry
51-
key: pydeps-${{ inputs.python_version }}-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
42+
key: pydeps-${{ inputs.python_version }}-${{ env.shellos }}-${{ hashFiles('**/poetry.lock') }}
5243

5344
# Install dependencies. `--no-root` means "install all dependencies but not the project
5445
# itself", which is what you want to avoid caching _your_ code. The `if` statement

0 commit comments

Comments
 (0)