Skip to content

Commit b631cfe

Browse files
committed
Move license/twine check into test CIBW_AFTER_BUILD does not exist
1 parent a5afc57 commit b631cfe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ jobs:
107107
rm -rf {package}/build
108108
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
109109
delvewheel repair -w {dest_dir} {wheel}
110-
CIBW_AFTER_BUILD: >-
111-
twine check {wheel} &&
112-
python {package}/ci/check_wheel_licenses.py {wheel}
113110
# On Windows, we explicitly request MSVC compilers (as GitHub Action runners have
114111
# MinGW on PATH that would be picked otherwise), switch to a static build for
115112
# runtimes, but use dynamic linking for `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll`,
@@ -122,6 +119,8 @@ jobs:
122119
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
123120
CIBW_SKIP: "*-musllinux_aarch64"
124121
CIBW_TEST_COMMAND: >-
122+
twine check {wheel} &&
123+
python {package}/ci/check_wheel_licenses.py {wheel}
125124
python {package}/ci/check_version_number.py
126125
MACOSX_DEPLOYMENT_TARGET: "10.12"
127126
strategy:

0 commit comments

Comments
 (0)