Skip to content

Commit 601ec89

Browse files
committed
Add wait for port
1 parent 2b46942 commit 601ec89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/checks.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ jobs:
5050
run: docker-compose up -d --build
5151
- name: Wait for app startup
5252
run: |
53-
{ sleep 120; echo "TIMEOUT!"; return 5; } &
54-
while ! $(curl localhost:8080 -so /dev/null); do echo "Waiting for the app to be up..."; docker-compose ps; sleep 5; done
53+
for i in $(seq 1 24); do
54+
sleep 5; curl localhost:8080 -so /dev/null && return;
55+
docker-compose ps;
56+
echo "Retrying ($i) in 5 seconds...";
57+
done
5558
- name: Run integration tests
5659
shell: bash
5760
run: pytest tests/test_integration

0 commit comments

Comments
 (0)