@@ -251,6 +251,11 @@ jobs:
251251 - name : Start services
252252 run : |
253253 # Start GenAI service
254+ if [ ! -d "genAi" ]; then
255+ echo "Error: genAi directory not found for integration tests"
256+ ls -la
257+ exit 1
258+ fi
254259 cd genAi
255260 pip install -r requirements.txt
256261 nohup python -m uvicorn main:app --host 0.0.0.0 --port 8081 &
@@ -326,6 +331,11 @@ jobs:
326331
327332 - name : Install Python dependencies
328333 run : |
334+ if [ ! -d "genAi" ]; then
335+ echo "Error: genAi directory not found"
336+ ls -la
337+ exit 1
338+ fi
329339 cd genAi
330340 pip install -r requirements.txt
331341 pip install -r requirements-test.txt
@@ -337,6 +347,11 @@ jobs:
337347 WEAVIATE_HOST : localhost
338348 WEAVIATE_PORT : 8080
339349 run : |
350+ if [ ! -d "genAi" ]; then
351+ echo "Error: genAi directory not found"
352+ ls -la
353+ exit 1
354+ fi
340355 cd genAi
341356 nohup python -m uvicorn main:app --host 0.0.0.0 --port 8081 &
342357 echo $! > genai-service.pid
@@ -346,6 +361,11 @@ jobs:
346361
347362 - name : Test AI functionality
348363 run : |
364+ if [ ! -d "genAi" ]; then
365+ echo "Error: genAi directory not found"
366+ ls -la
367+ exit 1
368+ fi
349369 cd genAi
350370
351371 # Test core AI features
@@ -476,10 +496,12 @@ jobs:
476496
477497 - name : Scan for secrets
478498 uses : trufflesecurity/trufflehog@main
499+ if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.event.before != github.sha)
479500 with :
480501 path : ./
481- base : main
482- head : HEAD
502+ base : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before || 'HEAD~1' }}
503+ head : ${{ github.sha }}
504+ extra_args : --debug --only-verified
483505
484506 # Job 9: Performance Tests
485507 performance-tests :
0 commit comments