Skip to content

fix: SDK API correctness — constructor, cypher result, VectorResult fields #4

fix: SDK API correctness — constructor, cypher result, VectorResult fields

fix: SDK API correctness — constructor, cypher result, VectorResult fields #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.11"
- run: uv sync
- run: uv run ruff check coordinode/ langchain-coordinode/ llama-index-coordinode/ tests/
- run: uv run ruff format --check coordinode/ langchain-coordinode/ llama-index-coordinode/ tests/
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync
- name: Generate proto stubs
run: uv run make proto
- name: Unit tests
run: uv run pytest tests/unit/ -v
test-integration:
name: Integration tests
runs-on: ubuntu-latest
services:
coordinode:
image: ghcr.io/structured-world/coordinode:latest
ports:
- 7080:7080
- 7084:7084
options: >-
--health-cmd "wget -qO- http://localhost:7084/health || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 12
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.11"
- name: Install + generate proto
run: |
uv sync
uv run make proto
- name: Integration tests
env:
COORDINODE_ADDR: "localhost:7080"
run: uv run pytest tests/integration/ -v --timeout=30