From 3ed4ea94b99439801133152265986410c7d23570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=CC=8Akon=20Wiik=20A=CC=8Anes?= Date: Thu, 30 May 2024 22:36:12 +0200 Subject: [PATCH] Do not attempt to install nlopt on macOS with pip in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Håkon Wiik Ånes --- .github/workflows/tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 064d960c..6cf906b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -92,13 +92,20 @@ jobs: run: | pip install ${{ matrix.DEPENDENCIES }} - - name: Install optional dependencies - if: ${{ contains(matrix.LABEL, 'minimum_requirement') == false }} + - name: Install optional dependencies on Linux and Windows + if: ${{ contains(matrix.LABEL, 'minimum_requirement') == false && matrix.os != 'macos-latest' }} shell: bash run: | pip install -e .'[all]' pip install pyopencl + - name: Install optional dependencies on macOS (without nlopt) + if: ${{ contains(matrix.LABEL, 'minimum_requirement') == false && matrix.os == 'macos-latest' }} + shell: bash + run: | + pip install -e . + pip install 'pyebsdindex[gpu]' pyvista + - name: Display Python, pip and package versions run: | python -V