Skip to content

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,9 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: '3.12'
26-
27-
- name: Get pip cache dir
28-
id: pip-cache
29-
run: |
30-
echo "::set-output name=dir::$(pip cache dir)"
31-
32-
- name: Cache
33-
uses: actions/cache@v4
34-
with:
35-
path: ${{ steps.pip-cache.outputs.dir }}
36-
key: release-${{ hashFiles('**/setup.py') }}
37-
restore-keys: |
38-
release-
26+
cache: pip
27+
cache-dependency-path: |
28+
**/pyproject.toml
3929
4030
- name: Install dependencies
4131
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,9 @@ jobs:
3939
uses: actions/setup-python@v5
4040
with:
4141
python-version: ${{ matrix.python-version }}
42-
43-
- name: Get pip cache dir
44-
id: pip-cache
45-
run: |
46-
echo "::set-output name=dir::$(pip cache dir)"
47-
48-
- name: Cache
49-
uses: actions/cache@v4
50-
with:
51-
path: ${{ steps.pip-cache.outputs.dir }}
52-
key:
53-
${{ matrix.python-version }}-v1-${{ hashFiles('**/pyproject.toml') }}
54-
restore-keys: |
55-
${{ matrix.python-version }}-v1-
42+
cache: pip
43+
cache-dependency-path: |
44+
**/pyproject.toml
5645
5746
- name: Install dependencies
5847
run: |

0 commit comments

Comments
 (0)