File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,19 @@ jobs:
3939 python-version : ' 3.11'
4040 cache : ' pip'
4141
42- - name : Install Python dependencies
42+ # Check if requirements.txt exists and only install if it does
43+ - name : Install Python dependencies (if requirements.txt exists)
4344 run : |
44- pip install -r backend/requirements.txt
45- pip install pytest
45+ if [ -f "backend/requirements.txt" ]; then
46+ echo "Found requirements.txt, installing dependencies..."
47+ pip install -r backend/requirements.txt
48+ else
49+ echo "No requirements.txt found, skipping pip install"
50+ fi
4651
4752 - name : Start FastAPI backend (in the background)
4853 run : |
4954 uvicorn backend.app:app --host 0.0.0.0 --port 8000 &
5055
5156 - name : Run Python integration tests
5257 run : pytest backend/integration_tests/ || echo "No Python integration tests found"
53-
54- # --- Optional: Test integration with the database ---
55- # You can add further steps here for any database interactions, depending on your test strategy
You can’t perform that action at this time.
0 commit comments