Skip to content

Commit 90887f4

Browse files
committed
Cache python setup step.
1 parent f3df2c6 commit 90887f4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/analysis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ jobs:
1818
uses: actions/setup-python@v5
1919
with:
2020
python-version: "3.11"
21-
cache: 'pip'
2221
- name: Cache pip
2322
uses: actions/cache@v3
2423
id: pip-cache
2524
with:
2625
key: ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
2726
path: ${{ env.pythonLocation }}
28-
if: steps.python-cache.outputs.cache-hit != 'true'
27+
if: steps.pip-cache.outputs.cache-hit != 'true'
2928

3029
- name: Install dependencies
3130
run: |
@@ -59,14 +58,13 @@ jobs:
5958
uses: actions/setup-python@v5
6059
with:
6160
python-version: "3.11"
62-
cache: 'pip'
63-
- name: Cache pip
61+
if: steps.pip-cache.outputs.cache-hit != 'true'
62+
- name: Restore cache
6463
id: python-cache
6564
uses: actions/cache@v3
6665
with:
6766
key: ${{ env.pythonLocation }}-pip-${{ hashFiles('**/requirements.txt') }}
6867
path: ${{ env.pythonLocation }}
69-
if: steps.python-cache.outputs.cache-hit != 'true'
7068

7169
- name: Generate fitting data
7270
run: |

.github/workflows/unit_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
cache: 'pip'
2726
# You can test your matrix by printing the current Python version
2827
- name: Display Python version
2928
run: python -c "import sys; print(sys.version)"

0 commit comments

Comments
 (0)