Skip to content

Commit 8778859

Browse files
committed
Install and test built wheel
1 parent a7bdc4b commit 8778859

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/build-cibw.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@ jobs:
165165

166166
run: bash .github/scripts/python_wheels/build_wheels.sh
167167

168+
- name: Test wheel
169+
run: |
170+
python3 -m pip install wheelhouse/*.whl
171+
python3 -c "import platform; print(platform.machine()); import gtsam"
172+
if [ "$RUNNER_OS" == "macOS" ]; then
173+
arch -x86_64 python3 -m pip uninstall -y numpy
174+
arch -x86_64 python3 -m pip install wheelhouse/*.whl
175+
arch -x86_64 python3 -c "import platform; print(platform.machine()); import gtsam;"
176+
fi
177+
168178
- name: Store artifacts
169179
uses: actions/upload-artifact@v4
170180
with:

.github/workflows/prod-cibw.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ jobs:
145145

146146
run: bash .github/scripts/python_wheels/build_wheels.sh
147147

148+
- name: Test wheel
149+
run: |
150+
python3 -m pip install wheelhouse/*.whl
151+
python3 -c "import platform; print(platform.machine()); import gtsam"
152+
if [ "$RUNNER_OS" == "macOS" ]; then
153+
arch -x86_64 python3 -m pip uninstall -y numpy
154+
arch -x86_64 python3 -m pip install wheelhouse/*.whl
155+
arch -x86_64 python3 -c "import platform; print(platform.machine()); import gtsam;"
156+
fi
157+
148158
- name: Store artifacts
149159
uses: actions/upload-artifact@v4
150160
with:

0 commit comments

Comments
 (0)