Skip to content

Commit

Permalink
[ci] use python-3.10 (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrsakai authored Nov 16, 2023
1 parent de6caa8 commit 801e5ce
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci-build-release-napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,21 @@ jobs:
- arm64
nodejs:
- 18
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.nodejs }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}
cache: 'npm'


- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Cache Dependencies
id: cache-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -162,6 +169,8 @@ jobs:
- x86
nodejs:
- 18
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.nodejs }}
Expand All @@ -171,6 +180,11 @@ jobs:
architecture: ${{ matrix.arch }}
cache: 'npm'

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Cache CPP Client
id: cache-dependencies
uses: actions/cache@v3
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/ci-pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,23 @@ jobs:
name: Run unit tests
runs-on: ubuntu-22.04
timeout-minutes: 120
strategy:
matrix:
python:
- "3.10"

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Run Test
run: |
./tests/run-unit-tests.sh
Expand Down Expand Up @@ -73,13 +83,20 @@ jobs:
- arm64
nodejs:
- 18
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.nodejs }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}
cache: 'npm'

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Cache Dependencies
id: cache-dependencies
Expand Down Expand Up @@ -196,6 +213,8 @@ jobs:
- x86
nodejs:
- 18
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.nodejs }}
Expand All @@ -205,6 +224,11 @@ jobs:
architecture: ${{ matrix.arch }}
cache: 'npm'

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Cache CPP Client
id: cache-dependencies
uses: actions/cache@v3
Expand Down Expand Up @@ -246,13 +270,21 @@ jobs:
timeout-minutes: 3000
strategy:
fail-fast: false
matrix:
python:
- "3.10"

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install CPP lib
run: |
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true
Expand All @@ -276,13 +308,23 @@ jobs:
timeout-minutes: 3000
strategy:
fail-fast: false
matrix:
python:
- "3.10"

steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- name: Use Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Install CPP lib
run: |
source pulsar-client-cpp.txt
Expand Down

0 comments on commit 801e5ce

Please sign in to comment.