[router] Introduce router integration tests (#10086)
This commit is contained in:
10
.github/workflows/pr-test-rust.yml
vendored
10
.github/workflows/pr-test-rust.yml
vendored
@@ -95,7 +95,15 @@ jobs:
|
||||
cd sgl-router
|
||||
source "$HOME/.cargo/env"
|
||||
pip install pytest pytest-cov pytest-xdist
|
||||
pytest -q py_test/unit
|
||||
pytest -q py_test/unit --cov=sglang_router --cov-report=term-missing --cov-fail-under=80
|
||||
|
||||
- name: Run Python integration tests
|
||||
run: |
|
||||
cd sgl-router
|
||||
source "$HOME/.cargo/env"
|
||||
# Integration tests use FastAPI/uvicorn for mock workers
|
||||
pip install fastapi uvicorn orjson
|
||||
pytest -q -m integration
|
||||
|
||||
- name: Run e2e test
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user