-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into zhyncs/distributed
- Loading branch information
Showing
45 changed files
with
1,668 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: PR Test (sgl-kernel) | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- "sgl-kernel/**" | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- "sgl-kernel/**" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: pr-test-sgl-kernel-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
unit-test: | ||
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 dependencies | ||
run: | | ||
bash scripts/ci_install_dependency.sh | ||
cd sgl-kernel | ||
git submodule update --init --recursive | ||
pip3 install -e . --force-reinstall | ||
pip3 list | grep sgl-kernel | ||
- name: Run test | ||
timeout-minutes: 10 | ||
run: | | ||
cd sgl-kernel | ||
find tests -name "test_*.py" | xargs -n 1 python3 | ||
- name: Uninstall dependencies | ||
run: | | ||
pip3 uninstall sgl-kernel -y | ||
finish: | ||
needs: [unit-test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Finish | ||
run: echo "This is an empty step to ensure that all jobs are completed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.