minor: update Makefile for sgl-kernel (#3025)
This commit is contained in:
1
.github/workflows/release-pypi-kernel.yml
vendored
1
.github/workflows/release-pypi-kernel.yml
vendored
@@ -14,6 +14,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-wheels:
|
build-wheels:
|
||||||
|
if: github.repository == 'sgl-project/sglang'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.PHONY: tree ln submodule install build clean test format
|
.PHONY: tree ln submodule install build clean test format
|
||||||
|
|
||||||
tree:
|
tree:
|
||||||
@tree --prune -I "__pycache__|*.egg-info|*.so|build"
|
@tree --prune -I "__pycache__|*.egg-info|*.so|build|3rdparty|dist"
|
||||||
|
|
||||||
submodule:
|
submodule:
|
||||||
@git submodule update --init --recursive
|
@git submodule update --init --recursive
|
||||||
@@ -19,7 +19,7 @@ clean:
|
|||||||
@rm -rf build dist *.egg-info
|
@rm -rf build dist *.egg-info
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@pytest tests/
|
@find tests -name "test_*.py" | xargs -n 1 python3
|
||||||
|
|
||||||
format:
|
format:
|
||||||
@find src tests -name '*.cc' -o -name '*.cu' -o -name '*.cuh' -o -name '*.h' -o -name '*.hpp' | xargs clang-format -i && find src tests -name '*.py' | xargs isort && find src tests -name '*.py' | xargs black
|
@find src tests -name '*.cc' -o -name '*.cu' -o -name '*.cuh' -o -name '*.h' -o -name '*.hpp' | xargs clang-format -i && find src tests -name '*.py' | xargs isort && find src tests -name '*.py' | xargs black
|
||||||
|
|||||||
Reference in New Issue
Block a user