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:
parent
98e1a8e3ae
commit
cb67370c9a
|
|
@ -100,7 +100,8 @@ jobs:
|
||||||
print('✅ Core modules loaded successfully')
|
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
|
pytest tests/unit/test_audio_utils.py -v --tb=short
|
||||||
|
|
||||||
echo "✅ Quick tests completed"
|
echo "✅ Quick tests completed"
|
||||||
|
|
@ -111,6 +112,9 @@ jobs:
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
echo "🔬 Running full test suite..."
|
echo "🔬 Running full test suite..."
|
||||||
|
|
||||||
|
# Set PYTHONPATH for proper module imports
|
||||||
|
export PYTHONPATH="${PYTHONPATH}:${PWD}"
|
||||||
|
|
||||||
# Run all tests with coverage
|
# Run all tests with coverage
|
||||||
pytest tests/ -v --tb=short --cov=src --cov-report=term-missing
|
pytest tests/ -v --tb=short --cov=src --cov-report=term-missing
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue