Skip to content

Commit 9ce5655

Browse files
committed
[CI] add pip caching to setup-python action
1 parent 56d6c2f commit 9ce5655

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: ${{ matrix.python-version }}
27+
cache: 'pip'
28+
cache-dependency-path: setup.cfg
2729
- name: Python info
2830
shell: bash -l {0}
2931
run: |

.github/workflows/linting.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
uses: actions/setup-python@v2
2222
with:
2323
python-version: 3.9
24+
cache: 'pip'
25+
cache-dependency-path: setup.cfg
2426
- name: Python info
2527
shell: bash -l {0}
2628
run: |

.github/workflows/notebooks.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
uses: actions/setup-python@v2
2424
with:
2525
python-version: 3.9
26+
cache: 'pip'
27+
cache-dependency-path: setup.cfg
2628
- name: Python info
2729
shell: bash -l {0}
2830
run: |

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
uses: actions/setup-python@v2
1818
with:
1919
python-version: 3.9
20+
cache: 'pip'
21+
cache-dependency-path: setup.cfg
2022
- name: Python info
2123
shell: bash -l {0}
2224
run: |
@@ -45,6 +47,8 @@ jobs:
4547
uses: actions/setup-python@v2
4648
with:
4749
python-version: 3.9
50+
cache: 'pip'
51+
cache-dependency-path: setup.cfg
4852
- name: Python info
4953
shell: bash -l {0}
5054
run: |

.github/workflows/sonarcloud.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
uses: actions/setup-python@v2
2323
with:
2424
python-version: 3.9
25+
cache: 'pip'
26+
cache-dependency-path: setup.cfg
2527
- name: Python info
2628
shell: bash -l {0}
2729
run: |

0 commit comments

Comments
 (0)