Skip to content

Commit 90e6db8

Browse files
authored
Update integration-tests.yml
1 parent 9e52cea commit 90e6db8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/integration-tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)