Skip to content

Commit

Permalink
Add sanity test
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo committed Feb 20, 2024
1 parent e226c59 commit 51d2d75
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ jobs:
docker build -t rocm -f Dockerfile.rocm .
- name: Run Sanity Test
run: |
docker run --detached --p 8000:8000 rocm
# detele any existing container
docker rm -f $(docker ps -a -q)
# run the container
docker run -d --p 8000:8000 rocm
# wait for the server to start
while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8000)" != "200" ]; do sleep 1; done
# run the sanity test
python examples/openai_completion_client.py
# remove the container
docker rm -f $(docker ps -a -q)

0 comments on commit 51d2d75

Please sign in to comment.