fix: exclude slow MCP/e2e tests from coverage step to prevent CI timeout
The coverage step re-runs the entire test suite with --cov, including MCP tests (~20min each) that are already tested in a prior step. This caused the 6-hour GitHub Actions timeout to be hit. Exclude the slow tests from coverage and add a 30-minute timeout guard. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -95,7 +95,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
run: |
|
run: |
|
||||||
python -m pytest tests/ --cov=src/skill_seekers --cov-report=xml --cov-report=term
|
python -m pytest tests/ --ignore=tests/test_mcp_fastmcp.py --ignore=tests/test_mcp_server.py --ignore=tests/test_install_skill_e2e.py --cov=src/skill_seekers --cov-report=xml --cov-report=term
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user