[router] Rust e2e test (#2184)

This commit is contained in:
Byron Hsu
2024-11-25 16:02:03 -08:00
committed by GitHub
parent 7f076c2ce6
commit 1f76fc6e3f
5 changed files with 209 additions and 2 deletions

View File

@@ -40,8 +40,31 @@ jobs:
cd rust/
cargo test
e2e-rust:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: 1-gpu-runner
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install rust dependencies
run: |
bash scripts/ci_install_rust.sh
- name: Build python binding
run: |
source "$HOME/.cargo/env"
cd rust
pip install setuptools-rust wheel build
python3 -m build
pip install dist/*.whl
- name: Run e2e test
run: |
cd rust/py_test
python3 run_suite.py
finish:
needs: [unit-test-rust]
needs: [unit-test-rust, e2e-rust]
runs-on: ubuntu-latest
steps:
- name: Finish