Skip to content

Commit

Permalink
Test PIP package and commands
Browse files Browse the repository at this point in the history
  • Loading branch information
oktaal committed Aug 29, 2023
1 parent 3f8b787 commit b0598d6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,18 @@ jobs:
- name: Run evaluation
run: |
python -m compound_splitter.evaluate
- name: Install as pip package
run: |
python3 setup.py sdist --formats zip
pip install dist/*.zip
- name: Test HTTP API
run: |
compound-splitters-nl-api &
sleep 1
response=$(curl 127.0.0.1:5000/list --write-out '%{http_code}' --output /dev/null --silent)
if [[ $response -ne "200" ]]; then exit -1; fi
- name: Test socket
compound-splitters-nl-socket &
sleep 1
response=$(echo -e 'test,never' | telnet localhost 7005 | grep Connected )
if [ -z "$response" ]; then exit -1; fi

0 comments on commit b0598d6

Please sign in to comment.