Update e2e_tests.yml

This commit is contained in:
hajdul88 2026-01-16 19:03:52 +01:00
parent cc9eae0285
commit cea732ea29

View file

@ -687,17 +687,10 @@ jobs:
python-version: '3.11.x' python-version: '3.11.x'
extra-dependencies: "redis" extra-dependencies: "redis"
- name: Install minimal MCP dependencies from cognee-mcp lockfile - name: Install MCP dependencies from cognee-mcp pyproject.toml
run: | run: |
# Extract exact versions of mcp, fastmcp, httpx from cognee-mcp lockfile # Extract dependencies directly from cognee-mcp/pyproject.toml and install them
cd cognee-mcp grep -E '"(fastmcp|mcp|httpx)' cognee-mcp/pyproject.toml | sed 's/.*"\(.*\)".*/\1/' | xargs uv run pip install
MCP_DEPS=$(uv export --no-hashes --format requirements.txt | grep -E '^(mcp|fastmcp|httpx)==')
cd ..
# Install into main .venv (where pytest runs) using the same Python
PYTHON=$(uv run which python)
echo "$MCP_DEPS" | "$PYTHON" -m pip install
# Verify installation
"$PYTHON" -c "import mcp; print('mcp version:', mcp.__version__)"
- name: Run api/tool usage logger - name: Run api/tool usage logger
env: env: