File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,13 @@ jobs:
18
18
uses : actions/setup-python@v5
19
19
with :
20
20
python-version : " 3.11"
21
- cache : ' pip'
22
21
- name : Cache pip
23
22
uses : actions/cache@v3
24
23
id : pip-cache
25
24
with :
26
25
key : ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
27
26
path : ${{ env.pythonLocation }}
28
- if : steps.python -cache.outputs.cache-hit != 'true'
27
+ if : steps.pip -cache.outputs.cache-hit != 'true'
29
28
30
29
- name : Install dependencies
31
30
run : |
@@ -59,14 +58,13 @@ jobs:
59
58
uses : actions/setup-python@v5
60
59
with :
61
60
python-version : " 3.11"
62
- cache : ' pip '
63
- - name : Cache pip
61
+ if : steps.pip- cache.outputs.cache-hit != 'true '
62
+ - name : Restore cache
64
63
id : python-cache
65
64
uses : actions/cache@v3
66
65
with :
67
66
key : ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
68
67
path : ${{ env.pythonLocation }}
69
- if : steps.python-cache.outputs.cache-hit != 'true'
70
68
71
69
- name : Generate fitting data
72
70
run : |
Original file line number Diff line number Diff line change 23
23
uses : actions/setup-python@v5
24
24
with :
25
25
python-version : ${{ matrix.python-version }}
26
- cache : ' pip'
27
26
# You can test your matrix by printing the current Python version
28
27
- name : Display Python version
29
28
run : python -c "import sys; print(sys.version)"
You can’t perform that action at this time.
0 commit comments