From 426b9fd79463f0c522842871a0180737a5225fb7 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 13 Dec 2024 05:53:22 +0000 Subject: [PATCH] add twine check as the last whl build step --- .github/actions/build/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index e1552ae8..777eedeb 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -26,6 +26,8 @@ runs: CIBW_BUILD: ${{ env.CIBW_BUILD }} CIBW_ARCHS_LINUX: "native" CIBW_BUILD_VERBOSITY: 1 + CIBW_TEST_REQUIRES: twine + CIBW_TEST_COMMAND: twine check ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl # # ensure Python.h & co can be found # CIBW_BEFORE_BUILD_WINDOWS: > # python -c "import sysconfig; print(sysconfig.get_path('include'))" >> $env:INCLUDE @@ -63,6 +65,8 @@ runs: PARALLEL_LEVEL=${{ env.PARALLEL_LEVEL }} CIBW_ENVIRONMENT_WINDOWS: > CUDA_HOME="$(cygpath -w $(realpath ./cuda_toolkit))" + CIBW_TEST_REQUIRES: twine + CIBW_TEST_COMMAND: twine check ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl # PARALLEL_LEVEL=${{ env.PARALLEL_LEVEL }} # # ensure Python.h & co can be found # CIBW_BEFORE_BUILD_WINDOWS: >