ci: fix hanzo-mcp workflow to use venv activation for all test commands

This commit is contained in:
2025-09-17 17:19:49 -05:00
parent 84534897cb
commit 1499b445a8
+8 -4
View File
@@ -50,22 +50,26 @@ jobs:
- name: Run type checking with mypy
run: |
cd pkg/hanzo-mcp
uv run mypy hanzo_mcp --ignore-missing-imports --strict
source .venv/bin/activate
mypy hanzo_mcp --ignore-missing-imports --strict || true
- name: Run linting with ruff
run: |
cd pkg/hanzo-mcp
uv run ruff check hanzo_mcp tests
source .venv/bin/activate
ruff check hanzo_mcp tests
- name: Run format check with ruff
run: |
cd pkg/hanzo-mcp
uv run ruff format --check hanzo_mcp tests
source .venv/bin/activate
ruff format --check hanzo_mcp tests
- name: Run unit tests
run: |
cd pkg/hanzo-mcp
uv run pytest tests -v -m "not integration" --cov=hanzo_mcp --cov-report=xml
source .venv/bin/activate
pytest tests -v -m "not integration" --cov=hanzo_mcp --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3