[router] Rust e2e test (#2184)
This commit is contained in:
25
.github/workflows/pr-test-rust.yml
vendored
25
.github/workflows/pr-test-rust.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user