File tree 2 files changed +5
-18
lines changed
2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 32
32
uses : actions/setup-python@v3
33
33
with :
34
34
python-version : 3.8
35
- - name : Cache PyPI
36
- uses : actions/cache@v3
37
- with :
38
- key : pip-lint-${{ hashFiles('requirements/*.txt') }}
39
- path : ~/.cache/pip
40
- restore-keys : |
41
- pip-lint-
35
+ cache : ' pip'
36
+ cache-dependency-path : ' requirements/*.txt'
42
37
- name : Install dependencies
43
38
uses : py-actions/py-dependency-install@v3
44
39
with :
94
89
uses : actions/setup-python@v3
95
90
with :
96
91
python-version : ${{ matrix.pyver }}
97
- - name : Get pip cache dir
98
- id : pip-cache
99
- run : |
100
- echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
101
- - name : Cache PyPI
102
- uses : actions/cache@v3
103
- with :
104
- key : pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-${{ hashFiles('requirements/*.txt') }}
105
- path : ${{ steps.pip-cache.outputs.dir }}
106
- restore-keys : |
107
- pip-ci-${{ runner.os }}-${{ matrix.pyver }}-{{ matrix.no-extensions }}-
92
+ cache : ' pip'
93
+ cache-dependency-path : ' requirements/*.txt'
108
94
- name : Install cython
109
95
if : ${{ matrix.no-extensions == '' }}
110
96
uses : py-actions/py-dependency-install@v3
Original file line number Diff line number Diff line change
1
+ Simplified cache handling in GitHub workflows.
You can’t perform that action at this time.
0 commit comments