From 5cdeb4b68e08b8861571a57d101cceb2089417be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johann=20Kl=C3=A4hn?= Date: Mon, 28 Oct 2024 12:38:03 +0100 Subject: [PATCH] Ensure that example project can be built using wheel --- .github/workflows/pypi.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index d07ae0c..22a0971 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -38,7 +38,12 @@ jobs: CIBW_BUILD: cp3*-${{ matrix.platform }} CIBW_SKIP: cp3{5,6,7,8}* CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/kljohann/genpybind-manylinux_2_28_x86_64:llvm-18 - CIBW_TEST_COMMAND: genpybind-tool --version + CIBW_TEST_COMMAND: >- + genpybind-tool --version && + pip install build scikit-build-core pybind11 cmake ninja && + python -m build --wheel --no-isolation {package}/example-project --outdir ./dist && + pip install dist/*.whl && + python -c "from genpybind_example import Example; print(Example.__doc__)" - uses: actions/upload-artifact@v4 with: