diff --git a/.github/workflows/release-pypi-kernel.yml b/.github/workflows/release-pypi-kernel.yml index 362088c47..466f2bdc7 100644 --- a/.github/workflows/release-pypi-kernel.yml +++ b/.github/workflows/release-pypi-kernel.yml @@ -14,6 +14,7 @@ concurrency: jobs: build-wheels: + if: github.repository == 'sgl-project/sglang' runs-on: ubuntu-latest strategy: matrix: diff --git a/sgl-kernel/Makefile b/sgl-kernel/Makefile index fac4c5c56..c7641bb5f 100644 --- a/sgl-kernel/Makefile +++ b/sgl-kernel/Makefile @@ -1,7 +1,7 @@ .PHONY: tree ln submodule install build clean test format tree: - @tree --prune -I "__pycache__|*.egg-info|*.so|build" + @tree --prune -I "__pycache__|*.egg-info|*.so|build|3rdparty|dist" submodule: @git submodule update --init --recursive @@ -19,7 +19,7 @@ clean: @rm -rf build dist *.egg-info test: - @pytest tests/ + @find tests -name "test_*.py" | xargs -n 1 python3 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