add cache for workflow

This commit is contained in:
DancingSnow 2022-10-17 09:34:18 +08:00 committed by AUTOMATIC1111
parent 6f7b7a3dcd
commit 8aaadf56b3
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: 3.10.6
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install PyLint
run: |
python -m pip install --upgrade pip