mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-18 10:16:49 +00:00
fix: use direct commands instead of uv run with --system
Changed from 'uv run <command>' to direct '<command>' execution since we're using 'uv pip install --system' which installs to the system Python environment. This fixes pytest-cov and other plugin detection issues. Changes: - pytest instead of uv run pytest - ruff instead of uv run ruff - superclaude instead of uv run superclaude - Added uv pip list for debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
43bfa0aa02
commit
8da05a1720
8
.github/workflows/quick-check.yml
vendored
8
.github/workflows/quick-check.yml
vendored
@ -31,19 +31,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Run unit tests only
|
- name: Run unit tests only
|
||||||
run: |
|
run: |
|
||||||
uv run pytest tests/unit/ -v --tb=short -x
|
pytest tests/unit/ -v --tb=short -x
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: |
|
run: |
|
||||||
uv run ruff check src/ tests/
|
ruff check src/ tests/
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: |
|
run: |
|
||||||
uv run ruff format --check src/ tests/
|
ruff format --check src/ tests/
|
||||||
|
|
||||||
- name: Verify pytest plugin
|
- name: Verify pytest plugin
|
||||||
run: |
|
run: |
|
||||||
uv run pytest --trace-config 2>&1 | grep -q "superclaude"
|
pytest --trace-config 2>&1 | grep -q "superclaude"
|
||||||
|
|
||||||
- name: Summary
|
- name: Summary
|
||||||
if: success()
|
if: success()
|
||||||
|
|||||||
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -36,19 +36,21 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
uv pip install --system -e ".[dev]"
|
uv pip install --system -e ".[dev]"
|
||||||
|
uv pip list --system
|
||||||
|
|
||||||
- name: Verify package installation
|
- name: Verify package installation
|
||||||
run: |
|
run: |
|
||||||
uv run python -c "import superclaude; print(f'SuperClaude {superclaude.__version__} installed')"
|
python -c "import superclaude; print(f'SuperClaude {superclaude.__version__} installed')"
|
||||||
|
python -c "import pytest_cov; print('pytest-cov is installed')"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
uv run pytest -v --tb=short --color=yes
|
pytest -v --tb=short --color=yes
|
||||||
|
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
if: matrix.python-version == '3.10'
|
if: matrix.python-version == '3.10'
|
||||||
run: |
|
run: |
|
||||||
uv run pytest --cov=superclaude --cov-report=xml --cov-report=term
|
pytest --cov=superclaude --cov-report=xml --cov-report=term
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
if: matrix.python-version == '3.10'
|
if: matrix.python-version == '3.10'
|
||||||
@ -83,11 +85,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Run ruff linter
|
- name: Run ruff linter
|
||||||
run: |
|
run: |
|
||||||
uv run ruff check src/ tests/
|
ruff check src/ tests/
|
||||||
|
|
||||||
- name: Check ruff formatting
|
- name: Check ruff formatting
|
||||||
run: |
|
run: |
|
||||||
uv run ruff format --check src/ tests/
|
ruff format --check src/ tests/
|
||||||
|
|
||||||
plugin-check:
|
plugin-check:
|
||||||
name: Pytest Plugin Check
|
name: Pytest Plugin Check
|
||||||
@ -113,11 +115,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify pytest plugin loaded
|
- name: Verify pytest plugin loaded
|
||||||
run: |
|
run: |
|
||||||
uv run pytest --trace-config 2>&1 | grep -q "superclaude" && echo "✅ Plugin loaded successfully" || (echo "❌ Plugin not loaded" && exit 1)
|
pytest --trace-config 2>&1 | grep -q "superclaude" && echo "✅ Plugin loaded successfully" || (echo "❌ Plugin not loaded" && exit 1)
|
||||||
|
|
||||||
- name: Check available fixtures
|
- name: Check available fixtures
|
||||||
run: |
|
run: |
|
||||||
uv run pytest --fixtures | grep -E "(confidence_checker|self_check_protocol|reflexion_pattern|token_budget|pm_context)"
|
pytest --fixtures | grep -E "(confidence_checker|self_check_protocol|reflexion_pattern|token_budget|pm_context)"
|
||||||
|
|
||||||
doctor-check:
|
doctor-check:
|
||||||
name: SuperClaude Doctor Check
|
name: SuperClaude Doctor Check
|
||||||
@ -143,7 +145,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run doctor command
|
- name: Run doctor command
|
||||||
run: |
|
run: |
|
||||||
uv run superclaude doctor --verbose
|
superclaude doctor --verbose
|
||||||
|
|
||||||
test-summary:
|
test-summary:
|
||||||
name: Test Summary
|
name: Test Summary
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user