Skip to content

Commit 94ffe67

Browse files
hugovkclaudep
authored andcommitted
Use actions/setup-python's caching to remove config
1 parent 0490870 commit 94ffe67

File tree

3 files changed

+8
-43
lines changed

3 files changed

+8
-43
lines changed

.github/workflows/docs-lint.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,9 @@ jobs:
2020
- name: Set up Python
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.9
24-
25-
- name: Get pip cache dir
26-
id: pip-cache
27-
run: |
28-
echo "::set-output name=dir::$(pip cache dir)"
29-
30-
- name: Cache
31-
uses: actions/cache@v2
32-
with:
33-
path: ${{ steps.pip-cache.outputs.dir }}
34-
key:
35-
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
36-
restore-keys: |
37-
${{ matrix.os }}-${{ matrix.python-version }}-v1-
23+
python-version: "3.10"
24+
cache: pip
25+
cache-dependency-path: "setup.py"
3826

3927
- name: Install dependencies
4028
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,9 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v2
2323
with:
24-
python-version: 3.8
25-
26-
- name: Get pip cache dir
27-
id: pip-cache
28-
run: |
29-
echo "::set-output name=dir::$(pip cache dir)"
30-
31-
- name: Cache
32-
uses: actions/cache@v2
33-
with:
34-
path: ${{ steps.pip-cache.outputs.dir }}
35-
key: release-${{ hashFiles('**/setup.py') }}
36-
restore-keys: |
37-
release-
24+
python-version: "3.10"
25+
cache: pip
26+
cache-dependency-path: "setup.py"
3827

3928
- name: Install dependencies
4029
run: |

.github/workflows/test.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,8 @@ jobs:
2121
uses: actions/setup-python@v2
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
25-
- name: Get pip cache dir
26-
id: pip-cache
27-
run: |
28-
echo "::set-output name=dir::$(pip cache dir)"
29-
30-
- name: Cache
31-
uses: actions/cache@v2
32-
with:
33-
path: ${{ steps.pip-cache.outputs.dir }}
34-
key:
35-
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}
36-
restore-keys: |
37-
${{ matrix.os }}-${{ matrix.python-version }}-v1-
24+
cache: pip
25+
cache-dependency-path: "setup.py"
3826

3927
- name: Install dependencies
4028
run: |

0 commit comments

Comments
 (0)