From cb67370c9a557dc381b97061f9c64c9d8d07ccfb Mon Sep 17 00:00:00 2001 From: S Date: Wed, 20 Aug 2025 01:12:26 -0400 Subject: [PATCH] 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 --- .gitea/workflows/manual-audio-test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/manual-audio-test.yml b/.gitea/workflows/manual-audio-test.yml index f389e6c..8ed4034 100644 --- a/.gitea/workflows/manual-audio-test.yml +++ b/.gitea/workflows/manual-audio-test.yml @@ -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