Skip to content

Commit fcf9920

Browse files
authored
Merge pull request #1948 from minrk/gha-cache-pip
enable cache in setup-python
2 parents 2e10ff8 + 1290b0f commit fcf9920

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/test.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
architecture: ${{ matrix.arch || 'x64' }}
9696
# allows us to use '3.12' and get '-dev' while we wait
9797
allow-prereleases: true
98+
cache: pip
9899

99100
- name: setup coverage
100101
if: startsWith(matrix.python, 'pypy') || startsWith(matrix.python, '3.12')
@@ -107,16 +108,6 @@ jobs:
107108
# run: |
108109
# echo "PYZMQ_CYTHON_COVERAGE=1" >> "$GITHUB_ENV"
109110

110-
# preserve pip cache to speed up installation
111-
- name: Cache pip
112-
uses: actions/cache@v4
113-
with:
114-
path: ~/.cache/pip
115-
# Look to see if there is a cache hit for the corresponding requirements file
116-
key: ${{ runner.os }}-pip-${{ runner.python }}-${{ hashFiles('*requirements.txt') }}
117-
restore-keys: |
118-
${{ runner.os }}-pip-
119-
120111
- name: install dependencies
121112
run: |
122113
pip install --upgrade pip wheel

.github/workflows/wheels.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
uses: actions/setup-python@v5
3737
with:
3838
python-version: "3.11"
39+
cache: pip
3940

4041
- name: install dependencies
4142
run: |

0 commit comments

Comments
 (0)