Fix PYTHONPATH issue in workflow tests

- Add export PYTHONPATH before running pytest in Quick Tests
- Add export PYTHONPATH before running pytest in Full Test Suite
- This fixes ModuleNotFoundError when importing src modules
This commit is contained in:
S 2025-08-20 01:12:26 -04:00
parent 98e1a8e3ae
commit cb67370c9a
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,8 @@ jobs:
print('✅ Core modules loaded successfully')
"
# Run minimal test suite
# Run minimal test suite with proper PYTHONPATH
export PYTHONPATH="${PYTHONPATH}:${PWD}"
pytest tests/unit/test_audio_utils.py -v --tb=short
echo "✅ Quick tests completed"
@ -111,6 +112,9 @@ jobs:
source venv/bin/activate
echo "🔬 Running full test suite..."
# Set PYTHONPATH for proper module imports
export PYTHONPATH="${PYTHONPATH}:${PWD}"
# Run all tests with coverage
pytest tests/ -v --tb=short --cov=src --cov-report=term-missing