Skip to content

Commit a9e24b1

Browse files
committed
Update CI/CD to generate SDKs and start server for integration tests
1 parent ce8db65 commit a9e24b1

3 files changed

Lines changed: 39 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Install dependencies
2424
run: npm ci
2525

26+
- name: Generate SDKs
27+
run: npm run generate:sdk:all --workspace=pmxt-core
28+
2629
- name: Run Tests (All Workspaces)
2730
run: npm test --workspaces
2831

@@ -45,10 +48,19 @@ jobs:
4548
steps:
4649
- uses: actions/checkout@v4
4750

51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: '20'
54+
4855
- uses: actions/setup-python@v5
4956
with:
5057
python-version: '3.x'
5158

59+
- name: Generate SDKs
60+
run: |
61+
npm ci
62+
npm run generate:sdk:all --workspace=pmxt-core
63+
5264
- name: Install build tools & dependencies
5365
run: pip install build twine pytest .
5466
working-directory: sdks/python

.github/workflows/test-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,20 @@ jobs:
2323
- name: Install dependencies (Root)
2424
run: npm ci
2525

26+
- name: Generate SDKs
27+
run: npm run generate:sdk:all --workspace=pmxt-core
28+
2629
- name: Build All Workspaces
2730
run: npm run build --workspaces
2831

32+
- name: Start PMXT Server
33+
run: |
34+
npm run server --workspace=pmxt-core &
35+
# Wait for server to be ready
36+
echo "Waiting for server to start..."
37+
timeout 30 bash -c 'until curl -s http://localhost:3000/health > /dev/null; do sleep 1; done'
38+
echo "Server is ready!"
39+
2940
- name: Test All Workspaces
3041
run: npm test --workspaces
3142

@@ -52,6 +63,19 @@ jobs:
5263
pip install .
5364
working-directory: sdks/python
5465

66+
- uses: actions/setup-node@v4
67+
with:
68+
node-version: '20'
69+
70+
- name: Install Node dependencies & Start Server
71+
run: |
72+
npm ci
73+
npm run generate:sdk:all --workspace=pmxt-core
74+
npm run build --workspace=pmxt-core
75+
npm run server --workspace=pmxt-core &
76+
# Wait for server
77+
timeout 30 bash -c 'until curl -s http://localhost:3000/health > /dev/null; do sleep 1; done'
78+
5579
- name: Run Tests
5680
run: pytest
5781
working-directory: sdks/python

sdks/python/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Repository = "https://github.com/qoery-com/pmxt"
4949
Issues = "https://github.com/qoery-com/pmxt/issues"
5050

5151
[tool.setuptools.packages.find]
52-
where = ["."]
53-
include = ["pmxt*"]
54-
exclude = ["tests*", "generated*"]
52+
where = [".", "generated"]
53+
include = ["pmxt*", "pmxt_internal*"]
54+
exclude = ["tests*"]
5555

5656
[tool.black]
5757
line-length = 100

0 commit comments

Comments
 (0)