diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1be4749a1..9ad8ab9b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,11 +53,12 @@ jobs: if [ "$RUNNER_OS" == "Linux" ]; then sudo apt-get update sudo apt-get install --yes build-essential pkg-config libhdf5-dev - fi - if [ "$RUNNER_OS" == "macOS" ]; then + + elif [ "$RUNNER_OS" == "macOS" ]; then # https://github.com/h5py/h5py/issues/1800#issuecomment-1124193511 - HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 - export HDF5_DIR="$(brew --prefix hdf5)"; + HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5@1.8 + export HDF5_DIR="$(brew --prefix hdf5)" + echo 'export PATH="/usr/local/opt/hdf5@1.8/bin:$PATH"' >> /Users/runner/.bash_profile poetry run pip install --no-binary=h5py h5py fi