Skip to content

Commit 4f13ec5

Browse files
committed
[ci] fixing manylinux testing step
1 parent b55b0a8 commit 4f13ec5

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/manylinux2014_wheel_builder/build_wheels.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for PYBIN in /opt/python/cp3{7,8,9,10,11,12,13,14}*/bin/; do
1414
echo "Python version: ${PYVER}"
1515

1616
# Clean previous build artifacts
17-
rm -rf build/ *.egg-info/ dist/ builddir/
17+
rm -rf build/ *.egg-info/ tmpwheels/ builddir/
1818

1919
# Install build dependencies
2020
"${PYBIN}/pip" install --upgrade pip
@@ -23,18 +23,23 @@ for PYBIN in /opt/python/cp3{7,8,9,10,11,12,13,14}*/bin/; do
2323
# Build wheel
2424
"${PYBIN}/python" -m build --wheel --outdir tmpwheels/
2525

26-
# Run unit tests
27-
"${PYBIN}/pip" install tmpwheels/zmat-*.whl
26+
# Run unit tests — install only the wheel we just built
27+
BUILT_WHEEL=$(ls tmpwheels/zmat-*.whl | head -1)
28+
"${PYBIN}/pip" install "$BUILT_WHEEL"
2829
"${PYBIN}/python" -m unittest discover -s tests -v
2930
"${PYBIN}/pip" uninstall -y zmat
31+
32+
# Move wheel to final collection directory
33+
mkdir -p allwheels/
34+
mv "$BUILT_WHEEL" allwheels/
3035
fi
3136
done
3237

3338
# Repair wheels with auditwheel to get manylinux tags
3439
rm -rf dist/
3540
mkdir -p dist/
3641

37-
for WHEEL in tmpwheels/*.whl; do
42+
for WHEEL in allwheels/*.whl; do
3843
if [ -f "$WHEEL" ]; then
3944
echo "Checking: ${WHEEL}"
4045

@@ -51,7 +56,7 @@ for WHEEL in tmpwheels/*.whl; do
5156
done
5257

5358
# Cleanup
54-
rm -rf tmpwheels/ build/ *.egg-info/ builddir/
59+
rm -rf allwheels/ tmpwheels/ build/ *.egg-info/ builddir/
5560

5661
echo "========================================"
5762
echo "Built wheels:"

0 commit comments

Comments
 (0)