File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
.github/actions/common-setup Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments