Skip to content

Commit ab27f33

Browse files
authored
Use pip cache from setup-python action (#26)
1 parent 60fff35 commit ab27f33

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

.github/workflows/auto_update_stat_images.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,8 @@ jobs:
3030
with:
3131
python-version: '3.10'
3232
architecture: 'x64'
33-
34-
# Cache dependencies. From:
35-
# https://github.com/actions/cache/blob/master/examples.md#python---pip
36-
- uses: actions/cache@v2
37-
with:
38-
path: ~/.cache/pip
39-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
40-
restore-keys: |
41-
${{ runner.os }}-pip-
33+
cache: pip
34+
cache-dependency-path: '**/requirements.txt'
4235

4336
# Switch to actions_branch if not exist, or create new actions_branch
4437
- name: Switch to actions_branch

.github/workflows/non_auto_generate_stat_images.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,8 @@ jobs:
3030
with:
3131
python-version: '3.10'
3232
architecture: 'x64'
33-
34-
# Cache dependencies. From:
35-
# https://github.com/actions/cache/blob/master/examples.md#python---pip
36-
- uses: actions/cache@v2
37-
with:
38-
path: ~/.cache/pip
39-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
40-
restore-keys: |
41-
${{ runner.os }}-pip-
33+
cache: pip
34+
cache-dependency-path: '**/requirements.txt'
4235

4336
# Creates a new branch for generating images or overwrites from older edits
4437
- name: Create new branch

0 commit comments

Comments
 (0)