Skip to content

Commit 801e5ce

Browse files
authored
[ci] use python-3.10 (#353)
1 parent de6caa8 commit 801e5ce

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

.github/workflows/ci-build-release-napi.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@ jobs:
4141
- arm64
4242
nodejs:
4343
- 18
44+
python:
45+
- "3.10"
4446
steps:
4547
- uses: actions/checkout@v3
4648
- name: Use Node.js ${{ matrix.nodejs }}
4749
uses: actions/setup-node@v3
4850
with:
4951
node-version: ${{ matrix.nodejs }}
5052
cache: 'npm'
51-
53+
54+
- name: Use Python ${{ matrix.python }}
55+
uses: actions/setup-python@v3
56+
with:
57+
python-version: ${{ matrix.python }}
58+
5259
- name: Cache Dependencies
5360
id: cache-dependencies
5461
uses: actions/cache@v3
@@ -162,6 +169,8 @@ jobs:
162169
- x86
163170
nodejs:
164171
- 18
172+
python:
173+
- "3.10"
165174
steps:
166175
- uses: actions/checkout@v3
167176
- name: Use Node.js ${{ matrix.nodejs }}
@@ -171,6 +180,11 @@ jobs:
171180
architecture: ${{ matrix.arch }}
172181
cache: 'npm'
173182

183+
- name: Use Python ${{ matrix.python }}
184+
uses: actions/setup-python@v3
185+
with:
186+
python-version: ${{ matrix.python }}
187+
174188
- name: Cache CPP Client
175189
id: cache-dependencies
176190
uses: actions/cache@v3

.github/workflows/ci-pr-validation.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,23 @@ jobs:
3030
name: Run unit tests
3131
runs-on: ubuntu-22.04
3232
timeout-minutes: 120
33+
strategy:
34+
matrix:
35+
python:
36+
- "3.10"
3337

3438
steps:
3539
- uses: actions/checkout@v3
3640
- name: Use Node.js 18
3741
uses: actions/setup-node@v3
3842
with:
3943
node-version: 18
44+
45+
- name: Use Python ${{ matrix.python }}
46+
uses: actions/setup-python@v3
47+
with:
48+
python-version: ${{ matrix.python }}
49+
4050
- name: Run Test
4151
run: |
4252
./tests/run-unit-tests.sh
@@ -73,13 +83,20 @@ jobs:
7383
- arm64
7484
nodejs:
7585
- 18
86+
python:
87+
- "3.10"
7688
steps:
7789
- uses: actions/checkout@v3
7890
- name: Use Node.js ${{ matrix.nodejs }}
7991
uses: actions/setup-node@v3
8092
with:
8193
node-version: ${{ matrix.nodejs }}
8294
cache: 'npm'
95+
96+
- name: Use Python ${{ matrix.python }}
97+
uses: actions/setup-python@v3
98+
with:
99+
python-version: ${{ matrix.python }}
83100

84101
- name: Cache Dependencies
85102
id: cache-dependencies
@@ -196,6 +213,8 @@ jobs:
196213
- x86
197214
nodejs:
198215
- 18
216+
python:
217+
- "3.10"
199218
steps:
200219
- uses: actions/checkout@v3
201220
- name: Use Node.js ${{ matrix.nodejs }}
@@ -205,6 +224,11 @@ jobs:
205224
architecture: ${{ matrix.arch }}
206225
cache: 'npm'
207226

227+
- name: Use Python ${{ matrix.python }}
228+
uses: actions/setup-python@v3
229+
with:
230+
python-version: ${{ matrix.python }}
231+
208232
- name: Cache CPP Client
209233
id: cache-dependencies
210234
uses: actions/cache@v3
@@ -246,13 +270,21 @@ jobs:
246270
timeout-minutes: 3000
247271
strategy:
248272
fail-fast: false
273+
matrix:
274+
python:
275+
- "3.10"
276+
249277
steps:
250278
- uses: actions/checkout@v3
251279
- name: Use Node.js 18
252280
uses: actions/setup-node@v3
253281
with:
254282
node-version: 18
255283
cache: 'npm'
284+
- name: Use Python ${{ matrix.python }}
285+
uses: actions/setup-python@v3
286+
with:
287+
python-version: ${{ matrix.python }}
256288
- name: Install CPP lib
257289
run: |
258290
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true
@@ -276,13 +308,23 @@ jobs:
276308
timeout-minutes: 3000
277309
strategy:
278310
fail-fast: false
311+
matrix:
312+
python:
313+
- "3.10"
314+
279315
steps:
280316
- uses: actions/checkout@v3
281317
- name: Use Node.js 18
282318
uses: actions/setup-node@v3
283319
with:
284320
node-version: 18
285321
cache: 'npm'
322+
323+
- name: Use Python ${{ matrix.python }}
324+
uses: actions/setup-python@v3
325+
with:
326+
python-version: ${{ matrix.python }}
327+
286328
- name: Install CPP lib
287329
run: |
288330
source pulsar-client-cpp.txt

0 commit comments

Comments
 (0)