Skip to content

Commit 45c8959

Browse files
committed
Add wait for port
1 parent f97e548 commit 45c8959

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ 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+
curl localhost:8080 -so /dev/null
54+
while [[ $? -ne 0 ]]
55+
do
56+
echo "Waiting for the service in port 8080 to be up ..."
57+
sleep 5
58+
curl localhost:8080 -so /dev/null
59+
done
5360
- name: Run integration tests
5461
shell: bash
5562
run: pytest tests/test_integration

0 commit comments

Comments
 (0)