Repository navigation
76 lines (70 loc) · 2.28 KB
/
Copy pathci.yml
File metadata and controls
76 lines (70 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: CI
# Lightweight build/test smoke for the most-used SDKs. The certification gate lives
# in wire-certify.yml; this just keeps the codec, Rust SDK, and Python from rotting.
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
# Every file's copyright and licence must be declared (a header, or REUSE.toml).
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: REUSE compliance (reuse lint)
run: |
python -m pip install reuse==6.2.0
reuse lint
codec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Test the wire+audio codec crate
working-directory: codec
run: cargo test
rust-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install protoc (tonic-build needs it)
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Build + test the Rust SDK
working-directory: rust
# --test-threads=1: the dcf bin's tests each build a DcfNode on the default
# UDP port 7777, so running them in parallel races to AddrInUse.
run: |
cargo build
cargo test -- --test-threads=1
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Byte-compile smoke (catches syntax errors without service deps)
run: python3 -m compileall python/MCP python/tests
langgraph-agents:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
working-directory: langgraph_agents
run: |
python -m pip install --upgrade pip
pip install langgraph langchain-core httpx pydantic rich textual fastapi uvicorn 'mcp<2' pytest pytest-asyncio
- name: Run tests
working-directory: langgraph_agents
env:
PYTHONPATH: .
run: python -m pytest -v