feat: implement error handling wrappers in graph nodes and add chaos … #11
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: | |
| branches: [main] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -e ".[dev]" | |
| - name: Lint (ruff check) | |
| run: uv run ruff check . | |
| - name: Format check (ruff format) | |
| run: uv run ruff format --check . | |
| - name: Type check (mypy) | |
| run: uv run mypy src/ --ignore-missing-imports | |
| - name: Unit tests (pytest) | |
| run: uv run pytest tests/ -v --tb=short -x | |
| env: | |
| # Prevent tests from trying to connect to real LLM APIs | |
| LLM_PROVIDER: gemini | |
| GEMINI_API_KEY: test-key-not-used | |
| PHOENIX_COLLECTOR_ENDPOINT: "" |