Skip to content

Commit 31e9ece

Browse files
committed
Use same caching as dist for prerelease
1 parent 367d73f commit 31e9ece

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,24 @@ jobs:
6060
continue-on-error: true
6161
steps:
6262
- uses: actions/checkout@v2
63+
- run: git fetch --prune --unshallow
6364
- uses: actions/setup-python@v2
6465
with:
6566
python-version: 3.8.x
67+
- uses: actions/cache@v1
68+
with:
69+
path: ~/.cache/pip
70+
key: pip-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
71+
restore-keys: |
72+
pip-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
73+
pip-ubuntu-latest-py3.8-
74+
- uses: actions/cache@v1
75+
with:
76+
path: ~/.local/share/virtualenvs
77+
key: virtualenvs-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
78+
restore-keys: |
79+
virtualenvs-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
80+
virtualenvs-ubuntu-latest-py3.8-
6681
- run: pip install -U -I --pre pipenv pip
6782
- run: make deps-prerelease
6883
- run: make fmt

0 commit comments

Comments
 (0)