Skip to content

Commit

Permalink
change curl
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosty2500 committed Nov 18, 2024
1 parent 3811fa4 commit 14b5c79
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,13 @@ jobs:
- name: Run container
run: |
docker run -d -p 8080:80 -v ./storage:/storage basyx-python-sdk-http-server
- name: Test the container
- name: Wait for the container to be ready
run: |
curl http://localhost:8080/api/v3.0/shells
for i in {1..10}; do
curl -s http://localhost:8080/api/v3.0/shells && break
echo "Waiting for server to be ready..."
sleep 2
done
- name: Stop the container
run: |
docker ps -q --filter "ancestor=basyx-python-sdk-http-server" | xargs -r docker stop
Expand Down

0 comments on commit 14b5c79

Please sign in to comment.