mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
ci: fix hanzo-mcp workflow to use venv activation for all test commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user