Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,68 @@ jobs:
- name: Type check
run: npm run lint

- name: Test
run: npm test

# ---------------------------------------------------------------------------
# SDKs — run the per-language client SDK test suites that were previously
# committed but never executed in CI (go, python, react).
# ---------------------------------------------------------------------------
sdk-go:
name: SDK (Go)
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdk/go
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
cache-dependency-path: sdk/go/go.sum
- name: Test
run: go test -race ./...

sdk-python:
name: SDK (Python)
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdk/python
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install package with test deps
run: pip install -e ".[dev]"
- name: Test
run: pytest -q

sdk-react:
name: SDK (React)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
# react depends on the TypeScript SDK via `file:../typescript`, which
# resolves to its built dist/ (gitignored). Build it before installing
# react so the file: dependency resolves at test time.
- name: Build the TypeScript SDK
working-directory: sdk/typescript
run: npm ci && npm run build
- name: Install dependencies
working-directory: sdk/react
run: npm ci
- name: Test
working-directory: sdk/react
run: npm test

# ---------------------------------------------------------------------------
# OpenAPI specification — Spectral linting
# ---------------------------------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ dependencies = [
"websockets>=12.0",
]

[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
]

[project.urls]
Homepage = "https://github.com/Telocel-Labs/Trident"
Repository = "https://github.com/Telocel-Labs/Trident"
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def test_yields_events_from_websocket(self):
client = make_client()
received = []

async def fake_ws(*args, **kwargs):
def fake_ws(*args, **kwargs):
class FakeWS:
async def __aenter__(self):
return self
Expand Down
Loading
Loading