From e395a2621be22ebd6fe7998653c5e434f73c3fb7 Mon Sep 17 00:00:00 2001 From: Arjuna Keshavan <33526713+arjkesh@users.noreply.github.com> Date: Fri, 6 Feb 2026 16:54:42 -0800 Subject: [PATCH] Add option to ignore specific wheel validations --- .github/workflows/build-wheel.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index 44895ce..d08fa25 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -46,6 +46,11 @@ on: required: false type: boolean default: false + check-wheel-contents-ignore: + description: 'Comma-separated check codes to ignore (e.g., W002 for duplicate files from symlinks)' + required: false + type: string + default: '' outputs: artifact-name: description: 'Name of the uploaded wheel artifact (base name, without version suffix)' @@ -82,7 +87,11 @@ jobs: - name: Validate wheel run: | pip install twine check-wheel-contents - check-wheel-contents dist/*.whl + if [ -n "${{ inputs.check-wheel-contents-ignore }}" ]; then + check-wheel-contents --ignore "${{ inputs.check-wheel-contents-ignore }}" dist/*.whl + else + check-wheel-contents dist/*.whl + fi twine check dist/* - name: Test import