Skip to content

Commit af0ea90

Browse files
committed
Add wait for port
1 parent ce08f75 commit af0ea90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ jobs:
4949
- name: Deploy app
5050
run: docker-compose up -d --build
5151
- name: Wait for app startup
52-
run: sleep 20
52+
run: |
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
5358
- name: Run integration tests
5459
shell: bash
5560
run: pytest tests/test_integration

0 commit comments

Comments
 (0)