Skip to content

Commit 0316e1f

Browse files
committed
add pip cache for build
1 parent 6c94d4c commit 0316e1f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
PIP_DISABLE_PIP_VERSION_CHECK: 1
1111
PYTHONUNBUFFERED: 1
1212
PYTHONIOENCODING: utf-8
13+
CACHE_EPOCH: 0
1314

1415
defaults:
1516
run:
@@ -30,6 +31,16 @@ jobs:
3031
uses: actions/setup-node@v2
3132
with:
3233
node: 14.x
34+
- name: Cache pip packages
35+
uses: actions/cache@v1
36+
with:
37+
path: ~/.cache/pip
38+
key: |
39+
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-build-${{ hashFiles('setup.py', 'pyproject.toml') }}
40+
restore-keys: |
41+
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-build-
42+
${{ env.CACHE_EPOCH }}-${{ runner.os }}-pip-build-
43+
- name: Cache npm packages
3344
- name: Install installation dependencies
3445
run: |
3546
set -eux

0 commit comments

Comments
 (0)