Cache pip

This commit is contained in:
Jannis Leidel 2020-11-23 16:38:15 +01:00
parent f50a62ed77
commit 4a2baeceab
No known key found for this signature in database
GPG key ID: C795956FB489DCA9

View file

@ -18,6 +18,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-v1-
- name: Install dependencies
run: |
python -m pip install --upgrade pip