fix: Update GitHub Actions workflow for refactored package structure
Fix test failures in CI by updating dependencies installation: - Install from requirements.txt (includes httpx for async support) - Update path: mcp/ → skill_seeker_mcp/ - Fix coverage command to use correct package name Fixes ModuleNotFoundError: No module named 'httpx' in CI 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@@ -31,16 +31,15 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'mcp/requirements.txt') }}
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', 'skill_seeker_mcp/requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pip-
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install requests beautifulsoup4
|
||||
pip install pytest pytest-cov
|
||||
if [ -f mcp/requirements.txt ]; then pip install -r mcp/requirements.txt; fi
|
||||
pip install -r requirements.txt
|
||||
if [ -f skill_seeker_mcp/requirements.txt ]; then pip install -r skill_seeker_mcp/requirements.txt; fi
|
||||
|
||||
- name: Run CLI tests
|
||||
run: |
|
||||
@@ -54,7 +53,7 @@ jobs:
|
||||
|
||||
- name: Generate coverage report
|
||||
run: |
|
||||
python -m pytest tests/ --cov=cli --cov=mcp --cov-report=xml --cov-report=term
|
||||
python -m pytest tests/ --cov=cli --cov=skill_seeker_mcp --cov-report=xml --cov-report=term
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
|
||||
Reference in New Issue
Block a user