Make LitAPI.predict
optional and validate API implementation
#884
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run parity tests | |
on: | |
push: | |
branches: [main, "release/*"] | |
pull_request: | |
branches: [main, "release/*"] | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
pytester: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install LitServe | |
run: | | |
pip --version | |
pip install . torchvision jsonargparse uvloop tenacity -U -q -r _requirements/test.txt -U -q | |
pip list | |
- name: Parity test | |
run: export PYTHONPATH=$PWD && python tests/parity_fastapi/main.py | |
- name: Streaming speed test | |
run: bash tests/perf_test/stream/run_test.sh |