Skip to content

Commit d2ca1d1

Browse files
committed
add python for unit tests in backend-native
1 parent 1217b54 commit d2ca1d1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/push.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
matrix:
4343
# Current docker version + next LTS
4444
node-version: [20.x, 22.x]
45+
python-version: [3.11]
4546
fail-fast: false
4647

4748
steps:
@@ -65,6 +66,10 @@ jobs:
6566
uses: actions/setup-node@v4
6667
with:
6768
node-version: ${{ matrix.node-version }}
69+
- name: Install Python
70+
uses: actions/setup-python@v5
71+
with:
72+
python-version: ${{ matrix.python-version }}
6873
- name: Get yarn cache directory path
6974
id: yarn-cache-dir-path
7075
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -92,9 +97,12 @@ jobs:
9297
run: yarn tsc
9398
- name: Build client
9499
run: yarn build
95-
- name: Build cubejs-backend-native
96-
run: yarn run native:build-debug-python
100+
- name: Build cubejs-backend-native (with Python)
101+
run: yarn run native:build-release-python
97102
working-directory: ./packages/cubejs-backend-native
103+
env:
104+
PYO3_PYTHON: python${{ matrix.python-version }}
105+
98106
- name: Lerna test
99107
run: yarn lerna run --concurrency 1 --stream --no-prefix unit
100108
# - uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)