Skip to content

Commit 344ea06

Browse files
committed
configure pip cache
1 parent 09547e7 commit 344ea06

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

28+
- name: Get pip cache dir
29+
id: pip-cache
30+
run: |
31+
echo "::set-output name=dir::$(pip cache dir)"
32+
33+
- name: pip cache
34+
uses: actions/cache@v2
35+
with:
36+
path: ${{ steps.pip-cache.outputs.dir }}
37+
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
38+
restore-keys: |
39+
${{ runner.os }}-pip-
40+
2841
- name: Install
2942
run: |
3043
pip install tox

0 commit comments

Comments
 (0)