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 2b46942 commit 601ec89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ jobs:
run: docker-compose up -d --build
- name: Wait for app startup
run: |
{ sleep 120; echo "TIMEOUT!"; return 5; } &
while ! $(curl localhost:8080 -so /dev/null); do echo "Waiting for the app to be up..."; docker-compose ps; sleep 5; done
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 601ec89

Please sign in to comment.