From 5df9f8a624880de6d63a190beb346db893ee5fb8 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Fri, 1 Dec 2023 09:00:22 +0530 Subject: [PATCH] #3558 try to initialise IDAKLU solver instead of just importing it --- .github/workflows/publish_pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 75e3ebc94b..a1db0e9a39 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -114,7 +114,7 @@ jobs: bash scripts/install_sundials.sh 6.0.3 6.5.0 CIBW_BEFORE_BUILD_LINUX: python -m pip install cmake casadi setuptools wheel CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair -w {dest_dir} {wheel} - CIBW_TEST_COMMAND: python -c "import pybamm; print(pybamm.have_idaklu())" | grep True + CIBW_TEST_COMMAND: python -c "import pybamm; pybamm.IDAKLUSolver()" - name: Build wheels on macOS if: matrix.os == 'macos-latest' @@ -124,7 +124,7 @@ jobs: python -m pip install --upgrade cmake casadi setuptools wheel && scripts/fix_suitesparse_rpath_mac.sh CIBW_REPAIR_WHEEL_COMMAND_MACOS: delocate-listdeps {wheel} && delocate-wheel -v -w {dest_dir} {wheel} - CIBW_TEST_COMMAND: python -c "import pybamm; print(pybamm.have_idaklu())" | grep True + CIBW_TEST_COMMAND: python -c "import pybamm; pybamm.IDAKLUSolver()" - name: Upload wheels uses: actions/upload-artifact@v3