feat(integrations): LangChain callback and MCP boundary capture; Live… #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.11", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - run: python -m pip install --upgrade pip | |
| - run: pip install -e ".[dev]" | |
| # langgraph 1.x needs Python >= 3.10; install the extra where supported so the | |
| # LangGraph integration tests run instead of skipping (they skipif-absent on 3.9). | |
| - if: matrix.python-version != '3.9' | |
| run: pip install -e ".[langgraph]" | |
| - run: pytest -q | |
| - run: python examples/example_payment_audit.py | |
| - if: matrix.python-version != '3.9' | |
| run: python examples/example_langgraph_capture.py | |
| - if: matrix.python-version != '3.9' | |
| run: python examples/example_langgraph_live_replay.py | |
| # graph-only (NetworkX, present via the langgraph extra on these versions) | |
| - if: matrix.python-version != '3.9' | |
| run: python examples/example_live_monitor.py | |
| # Pin the validated framework contracts for the LangChain and MCP adapters. The | |
| # matrix job above never installs these extras, so without this job every | |
| # adapter test would silently skip in CI. Pins match the reviewed versions; the | |
| # trailing canary re-runs the LangChain tests at the advertised floor. | |
| integration-contracts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - run: python -m pip install --upgrade pip | |
| - run: >- | |
| pip install -e ".[dev,graph,langchain,mcp]" | |
| "langchain-core==1.4.9" "mcp==1.28.1" | |
| - run: >- | |
| pytest -q tests/test_langchain_integration.py | |
| tests/test_mcp_integration.py tests/test_live_session.py | |
| tests/test_public_api.py | |
| - run: python examples/example_langchain_capture.py | |
| - run: python examples/example_mcp_capture.py | |
| - run: pip install "langchain-core==0.3.0" | |
| - run: pytest -q tests/test_langchain_integration.py |