langchain-ci-integration
Installation
SKILL.md
LangChain CI Integration
Overview
Integrate LangChain chain and agent testing into CI/CD pipelines. Covers chain unit tests with mocked LLMs, RAG pipeline validation, agent tool testing, and integration tests with real LLM calls gated behind environment flags.
Prerequisites
- LangChain installed (
langchain,langchain-openai) - GitHub Actions configured
- pytest for Python or Vitest for TypeScript
- LLM API keys stored as GitHub secrets
Instructions
Step 1: CI Workflow with Mocked and Live Tests
# .github/workflows/langchain-tests.yml
name: LangChain Tests
on:
pull_request:
Related skills