[model-gateway]: move unit tests to bindings/python/tests/ (#16430)

This commit is contained in:
Simo Lin
2026-01-04 18:10:35 -08:00
committed by GitHub
parent f8411ded6e
commit 0ff3747ca1
18 changed files with 48 additions and 18 deletions

View File

@@ -191,10 +191,10 @@ jobs:
- name: Run Python unit tests
run: |
cd sgl-model-gateway
cd sgl-model-gateway/bindings/python
source "$HOME/.cargo/env"
python3 -m pip install pytest pytest-cov pytest-xdist
pytest -q py_test/unit --cov=sglang_router --cov-config=bindings/python/.coveragerc --cov-report=term-missing --cov-fail-under=80
pytest -q tests --cov=sglang_router --cov-config=.coveragerc --cov-report=term-missing --cov-fail-under=80
- name: Run Python integration tests
run: |

View File

@@ -29,7 +29,7 @@ jobs:
- name: Build and Push
run: |
version=$(cat sgl-model-gateway/bindings/python/sglang_router/version.py | cut -d'"' -f2)
version=$(cat sgl-model-gateway/bindings/python/src/sglang_router/version.py | cut -d'"' -f2)
tag=v${version}
docker buildx build . -f docker/gateway.Dockerfile \