Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit ab3d73c

Browse files
hugovkboogheta
authored andcommitted
Replace actions/cache config with native actions/setup-python caching
1 parent 8c04259 commit ab3d73c

2 files changed

Lines changed: 4 additions & 22 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,12 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21-
- name: Cache
22-
uses: actions/cache@v2
23-
with:
24-
path: ~/.cache/pip
25-
key: deploy-${{ hashFiles('**/setup.py') }}
26-
restore-keys: |
27-
deploy-
28-
2921
- name: Set up Python
3022
uses: actions/setup-python@v4
3123
with:
3224
python-version: "3.x"
25+
cache: pip
26+
cache-dependency-path: setup.py
3327

3428
- name: Install dependencies
3529
run: |

.github/workflows/tests.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,8 @@ jobs:
3131
uses: actions/setup-python@v4
3232
with:
3333
python-version: ${{ matrix.python-version }}
34-
35-
- name: Get pip cache dir
36-
id: pip-cache
37-
run: |
38-
echo "::set-output name=dir::$(pip cache dir)"
39-
40-
- name: Cache
41-
uses: actions/cache@v2
42-
with:
43-
path: ${{ steps.pip-cache.outputs.dir }}
44-
key:
45-
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
46-
restore-keys: |
47-
${{ matrix.os }}-${{ matrix.python-version }}-v1-
34+
cache: pip
35+
cache-dependency-path: setup.py
4836

4937
- name: Install dependencies
5038
run: |

0 commit comments

Comments
 (0)