Skip to content

Commit 01e96f3

Browse files
committed
1 parent 891f303 commit 01e96f3

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ jobs:
1414
uses: actions/setup-python@v2
1515
with:
1616
python-version: "3.10"
17-
- name: Cache Python dependencies
18-
uses: actions/cache@v2
19-
with:
20-
path: ~/.cache/pip
21-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/3.10.txt') }}
22-
restore-keys: |
23-
${{ runner.os }}-pip-
24-
${{ runner.os }}-
17+
cache: pip
18+
cache-dependency-path: requirements/3.10.txt
2519
- name: Install Python dependencies
2620
run: |
2721
pip install --upgrade pip

.github/workflows/main.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,8 @@ jobs:
4646
uses: actions/setup-python@v2
4747
with:
4848
python-version: ${{ matrix.python-version }}
49-
- name: Cache Python dependencies
50-
uses: actions/cache@v2
51-
with:
52-
path: ~/.cache/pip
53-
key: ${{ runner.os }}-pip-${{ hashFiles(format('requirements/{0}.txt', matrix.python-version)) }}
54-
restore-keys: |
55-
${{ runner.os }}-pip-
56-
${{ runner.os }}-
49+
cache: pip
50+
cache-dependency-path: ${{ format('requirements/{0}.txt', matrix.python-version) }}
5751
- name: Install Python dependencies
5852
run: |
5953
pip install --upgrade pip

0 commit comments

Comments
 (0)