Skip to content

Commit 28f2a05

Browse files
committed
ci: using cache at ci
1 parent 48a4554 commit 28f2a05

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/python-app.yml

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
with:
2222
python-version: "3.10"
2323

24+
- name: Cache Python dependencies
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.cache/pip
28+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29+
restore-keys: |
30+
${{ runner.os }}-pip-
31+
2432
- name: Install dependencies
2533
run: |
2634
python -m pip install --upgrade pip

.github/workflows/python-publish.yml

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
with:
2020
python-version: "3.x"
2121

22+
- name: Cache Python dependencies
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-pip-
29+
2230
- name: Install dependencies
2331
run: |
2432
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)