Skip to content

Commit 5bbc4a0

Browse files
authored
Merge pull request #122 from mattcieslak/main
Change wheel search method for the linux build
2 parents 42c8031 + 54e1aa1 commit 5bbc4a0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build-test-package-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ jobs:
142142
fi
143143
WHEEL_PATTERN="dist/itk_*cp3${{ matrix.python3-minor-version }}*manylinux${MANYLINUX_VERSION}*${TARGET_ARCH_NAME}.whl"
144144
echo "Searching for wheels matching pattern ${WHEEL_PATTERN}"
145-
if [ -f "${WHEEL_PATTERN}" ]; then
146-
python -m pip install twine
147-
python -m twine check ${WHEEL_PATTERN}
148-
else
145+
WHEEL_COUNT=`(ls ${WHEEL_PATTERN} 2>/dev/null | wc -l)`
146+
if (( ${WHEEL_COUNT} == 0 )); then
149147
echo "Wheel pattern not found"
150148
exit -1
151149
fi
150+
python -m pip install twine
151+
python -m twine check ${WHEEL_PATTERN}
152152
153153
- name: Publish Python package as GitHub Artifact
154154
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)