[router] add py binding unit tests to coverage 80% (#10043)

This commit is contained in:
Keyang Ru
2025-09-05 08:40:21 -07:00
committed by GitHub
parent bd7f882142
commit 045ab92dc0
10 changed files with 2649 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ jobs:
cd sgl-router/
cargo fmt -- --check
- name: Run test
- name: Run Rust tests
timeout-minutes: 20
run: |
source "$HOME/.cargo/env"
@@ -83,6 +83,15 @@ jobs:
pip install setuptools-rust wheel build
python3 -m build
pip install --force-reinstall dist/*.whl
- name: Run Python unit tests
run: |
cd sgl-router
source "$HOME/.cargo/env"
pip install pytest pytest-cov pytest-xdist
pytest -q py_test/unit
- name: Run e2e test
run: |
bash scripts/killall_sglang.sh "nuk_gpus"