From 49d0b21ef3408153f2ff7926cffc1b2623b6f457 Mon Sep 17 00:00:00 2001 From: Francesco Ballarin Date: Thu, 9 May 2024 12:26:03 +0200 Subject: [PATCH] DROP BEFORE MERGE: install nanobind from source --- .github/workflows/pythonapp.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 98ccd5d7c..4b0559723 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -55,10 +55,22 @@ jobs: run: | sudo apt-get update sudo apt-get install -y doxygen graphviz libopenblas-dev liblapack-dev ninja-build + - name: Install Python dependencies + run: | + pip install --upgrade setuptools + pip install scikit-build-core[pyproject] wheel - name: Install UFL branch run: pip -v install git+https://github.com/FEniCS/ufl.git + - name: Install nanobind from source + run: | + git clone https://github.com/wjakob/nanobind.git /tmp/nanobind-src + cd /tmp/nanobind-src + git submodule update --init --recursive + cmake -D NB_TEST=off . + python3 -m pip install . + rm -rf /tmp/nanobind-src - name: Install Basix - run: pip -v install .[ci] + run: pip -v install --check-build-dependencies --no-build-isolation .[ci] - name: Run units tests run: pytest -n auto --durations 20 test/ - name: Run simple CMake integration test