add pip cache

This commit is contained in:
powderluv
2022-06-04 21:44:35 -07:00
committed by GitHub
parent afe246b71b
commit 11b99c9b30

View File

@@ -26,6 +26,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Setup pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -53,6 +61,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup pip cache
uses: actions/cache@v3
with:
path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE