Skip to content

Commit

Permalink
Add wait for port
Browse files Browse the repository at this point in the history
  • Loading branch information
lvarin committed Jan 8, 2025
1 parent ce08f75 commit af0ea90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ jobs:
- name: Deploy app
run: docker-compose up -d --build
- name: Wait for app startup
run: sleep 20
run: |
for i in $(seq 1 24); do
sleep 5; curl localhost:8080 -so /dev/null && return;
docker-compose ps;
echo "Retrying ($i) in 5 seconds...";
done
- name: Run integration tests
shell: bash
run: pytest tests/test_integration
Expand Down

0 comments on commit af0ea90

Please sign in to comment.