Skip to content

Commit 680061d

Browse files
committed
2 parents a4a3269 + b201555 commit 680061d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/pythonapp.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
docker compose -f docker-compose.prod.yml exec web python3 manage.py migrate --noinput
4343
docker compose -f docker-compose.prod.yml exec web python3 manage.py createsuperuser --noinput
4444
docker compose -f docker-compose.prod.yml exec web python3 manage.py collectstatic --no-input --clear
45+
- name: Wait for EXACT backend to be ready
46+
run: |
47+
for i in {1..60}; do
48+
if curl -s http://localhost:1337/api/v1/teams/; then
49+
echo "EXACT backend is up!"
50+
break
51+
fi
52+
echo "Waiting for EXACT backend..."
53+
sleep 5
54+
done
4555
- name: Test with pytest
4656
run: |
4757
pip install pytest

0 commit comments

Comments
 (0)