Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
58f3f2b8
Unverified
Commit
58f3f2b8
authored
Jan 17, 2025
by
Ke Bao
Committed by
GitHub
Jan 17, 2025
Browse files
Add CI for sgl-kernel (#2924)
parent
93d69061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
.github/workflows/pr-test-sgl-kernel.yml
.github/workflows/pr-test-sgl-kernel.yml
+46
-0
No files found.
.github/workflows/pr-test-sgl-kernel.yml
0 → 100644
View file @
58f3f2b8
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
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."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment