fix(agents): guard BaseContextProvider import for agent_framework >= … #7
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: ["**"] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| cache-dependency-path: | | |
| knowledge-graph-api/requirements.txt | |
| knowledge-graph-agents/requirements.txt | |
| - name: Setup Node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: knowledge-graph-ui/package-lock.json | |
| # ── API ──────────────────────────────────────────────────────── | |
| - name: "[API] Install dependencies" | |
| working-directory: knowledge-graph-api | |
| run: pip install -r requirements.txt | |
| - name: "[API] Lint (ruff)" | |
| working-directory: knowledge-graph-api | |
| run: ruff check . | |
| - name: "[API] Test (pytest)" | |
| working-directory: knowledge-graph-api | |
| run: pytest tests/ -v --tb=short | |
| # ── MCP ──────────────────────────────────────────────────────── | |
| - name: "[MCP] Install dependencies" | |
| working-directory: knowledge-graph-mcp | |
| run: | | |
| pip install -e . | |
| pip install ruff pytest pytest-asyncio | |
| - name: "[MCP] Lint (ruff)" | |
| working-directory: knowledge-graph-mcp | |
| run: ruff check . | |
| - name: "[MCP] Test (pytest)" | |
| working-directory: knowledge-graph-mcp | |
| run: pytest tests/ -v --tb=short | |
| # ── Agents ───────────────────────────────────────────────────── | |
| - name: "[Agents] Install dependencies" | |
| working-directory: knowledge-graph-agents | |
| run: | | |
| pip install --pre -r requirements.txt | |
| pip install ruff | |
| - name: "[Agents] Lint (ruff)" | |
| working-directory: knowledge-graph-agents | |
| run: ruff check . | |
| - name: "[Agents] Test (pytest)" | |
| working-directory: knowledge-graph-agents | |
| run: pytest tests/ -v --tb=short | |
| # ── UI ───────────────────────────────────────────────────────── | |
| - name: "[UI] Install dependencies" | |
| working-directory: knowledge-graph-ui | |
| run: npm ci | |
| - name: "[UI] Lint (eslint)" | |
| working-directory: knowledge-graph-ui | |
| run: npm run lint | |
| - name: "[UI] Type-check (tsc)" | |
| working-directory: knowledge-graph-ui | |
| run: npx tsc --noEmit |