From 39df330c549f11d9913a20e3035dd3f6d4daac5a Mon Sep 17 00:00:00 2001 From: Sean Kavanagh Date: Fri, 24 May 2024 16:51:01 +0100 Subject: [PATCH] Update GH Actions workflows to install updated `spglib` on both macos and ubuntu --- .github/workflows/pip_install_test.yml | 9 +++++++++ .github/workflows/test.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/pip_install_test.yml b/.github/workflows/pip_install_test.yml index afdab899..a14119ee 100644 --- a/.github/workflows/pip_install_test.yml +++ b/.github/workflows/pip_install_test.yml @@ -40,8 +40,17 @@ jobs: sleep 360 # wait 10 minutes for PyPI to update with the new release python -m pip install --upgrade pip pip install doped[tests] # install only from PyPI + + - name: Install spglib on macOS + if: matrix.os == 'macos-14' + run: | pip install git+https://github.com/spglib/spglib --config-settings=cmake.define.SPGLIB_SHARED_LIBS=OFF # avoid spglib warnings + - name: Install spglib on ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + conda install -c conda-forge spglib # avoid spglib warnings + - name: Test run: | pytest -vv -m "not mpl_image_compare" tests # all non-plotting tests diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1389bbc8..631d8dc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,8 +34,17 @@ jobs: run: | python -m pip install --upgrade pip pip install -e .[tests] + + - name: Install spglib on macOS + if: matrix.os == 'macos-14' + run: | pip install git+https://github.com/spglib/spglib --config-settings=cmake.define.SPGLIB_SHARED_LIBS=OFF # avoid spglib warnings + - name: Install spglib on ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + conda install -c conda-forge spglib # avoid spglib warnings + - name: Test run: | pytest -vv -m "not mpl_image_compare" tests # all non-plotting tests