Skip to content

Commit 3d00ba4

Browse files
authored
ci: save pip cache for multi-python jobs (googleapis#1095)
1 parent 5531795 commit 3d00ba4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/setup-python@v2
2323
with:
2424
python-version: 3.8
25+
cache: 'pip'
2526
- name: Install nox.
2627
run: python -m pip install nox
2728
- name: Build the documentation.
@@ -38,6 +39,7 @@ jobs:
3839
uses: actions/setup-python@v2
3940
with:
4041
python-version: 3.8
42+
cache: 'pip'
4143
- name: Install nox.
4244
run: python -m pip install nox
4345
- name: Check type annotations.
@@ -57,6 +59,7 @@ jobs:
5759
uses: actions/setup-python@v2
5860
with:
5961
python-version: 3.8
62+
cache: 'pip'
6063
- name: Install system dependencies.
6164
run: |
6265
sudo apt-get update
@@ -103,6 +106,7 @@ jobs:
103106
uses: actions/setup-python@v2
104107
with:
105108
python-version: 3.8
109+
cache: 'pip'
106110
- name: Copy mtls files
107111
run: cp tests/cert/mtls.* /tmp/workspace/tests/cert/
108112
- name: Install system dependencies.
@@ -161,6 +165,7 @@ jobs:
161165
uses: actions/setup-python@v2
162166
with:
163167
python-version: ${{ matrix.python }}
168+
cache: 'pip'
164169
- name: Install system dependencies.
165170
run: |
166171
sudo apt-get update
@@ -191,6 +196,7 @@ jobs:
191196
uses: actions/setup-python@v2
192197
with:
193198
python-version: 3.8
199+
cache: 'pip'
194200
- name: Install system dependencies.
195201
run: |
196202
sudo apt-get update
@@ -224,6 +230,7 @@ jobs:
224230
uses: actions/setup-python@v2
225231
with:
226232
python-version: 3.8
233+
cache: 'pip'
227234
- name: Install system dependencies.
228235
run: |
229236
sudo apt-get update
@@ -254,6 +261,7 @@ jobs:
254261
uses: actions/setup-python@v2
255262
with:
256263
python-version: 3.8
264+
cache: 'pip'
257265
- name: Install system dependencies.
258266
run: |
259267
sudo apt-get update
@@ -277,6 +285,7 @@ jobs:
277285
uses: actions/setup-python@v2
278286
with:
279287
python-version: ${{ matrix.python }}
288+
cache: 'pip'
280289
- name: Install pandoc
281290
run: |
282291
sudo apt-get update
@@ -301,6 +310,7 @@ jobs:
301310
uses: actions/setup-python@v2
302311
with:
303312
python-version: ${{ matrix.python }}
313+
cache: 'pip'
304314
- name: Install pandoc
305315
run: |
306316
sudo apt-get update
@@ -354,6 +364,7 @@ jobs:
354364
uses: actions/setup-python@v2
355365
with:
356366
python-version: 3.8
367+
cache: 'pip'
357368
- name: Install autopep8
358369
run: |
359370
python -m pip install autopep8

0 commit comments

Comments
 (0)