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 e7c5e31 commit 2b46942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ jobs:
- name: Deploy app
run: docker-compose up -d --build
- name: Wait for app startup
run: while ! $(curl localhost:8080 -so /dev/null); do echo "Waiting for the app to be up..."; docker-compose ps; sleep 5; done
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
- name: Run integration tests
shell: bash
run: pytest tests/test_integration
Expand Down

0 comments on commit 2b46942

Please sign in to comment.