Skip to content

Commit 7c5305a

Browse files
authored
GHA: Fix cache directory on Windows (#97)
Previous settings worked only on linux and macos...
1 parent 1cc04bf commit 7c5305a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci_tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

26+
- name: Get pip cache directory
27+
id: pip_cache_dir
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
2631
- name: Cache
2732
uses: actions/cache@v1
2833
with:
29-
path: ~/.cache/pip
34+
path: ${{ steps.pip_cache_dir.outputs.dir }}
3035
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/.ci_pip_reqs.txt') }}-${{ hashFiles('**/setup.py') }}
3136
restore-keys: |
3237
${{ runner.os }}-${{ matrix.python-version }}-

0 commit comments

Comments
 (0)