aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDancingSnow <1121149616@qq.com>2022-10-17 09:34:18 +0800
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-17 07:57:17 +0300
commit8aaadf56b3d5f06b9bd86718d7518883d94d70a0 (patch)
tree382a13bca31d0935c75c6b68cd4e3e053d487404
parent6f7b7a3dcdc471ebe63baa8a7731952557859c5b (diff)
add cache for workflow
-rw-r--r--.github/workflows/on_pull_request.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml
index 5270cba4..b097d180 100644
--- a/.github/workflows/on_pull_request.yaml
+++ b/.github/workflows/on_pull_request.yaml
@@ -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