Skip to content

Commit

Permalink
ci: add --fail to make sure the tests will fail when curl error
Browse files Browse the repository at this point in the history
  • Loading branch information
dm4 committed Apr 10, 2024
1 parent 31d5a81 commit be52716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/runNode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
run: sleep 10
- name: Test localhost API
run: |
curl -X POST http://localhost:8080/v1/chat/completions \
curl --fail -X POST http://localhost:8080/v1/chat/completions \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
- name: Test frp API
run: |
ADDRESS=$(jq -r '.address' $HOME/gaianet/config.json)
curl -X POST https://$ADDRESS.gaianet.xyz/v1/chat/completions \
curl --fail -X POST https://$ADDRESS.gaianet.xyz/v1/chat/completions \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"system", "content": "You are a helpful assistant."}, {"role":"user", "content": "Where is Paris?"}], "model":"TinyLlama-1.1B-Chat-v1.0-Q5_K_M"}'
Expand Down

0 comments on commit be52716

Please sign in to comment.