Skip to content

Commit f7ff8d3

Browse files
committed
Caches pip in GH actions
1 parent b68f23e commit f7ff8d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020
uses: actions/setup-python@v2
2121
with:
2222
python-version: 3.8
23+
- name: Caches pip
24+
uses: actions/cache@v1
25+
with:
26+
path: ~/.cache/pip
27+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
28+
restore-keys: |
29+
${{ runner.os }}-pip-
2330
- name: Install dependencies
2431
run: |
2532
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)