set -x
cp tests/matplotlibrc .
if [[ ${dependencies} == "full" || ${dependencies} == "cartopy" ]]; then
case ${RUNNER_OS} in
linux|Linux)
sudo apt-get -qqy update
sudo apt-get -qqy install \
libhdf5-serial-dev \
libnetcdf-dev \
libopenmpi-dev \
libfuse2
;;
osx|macOS)
sudo mkdir -p /usr/local/man
sudo chown -R "${USER}:admin" /usr/local/man
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall pkg-config@0.29.2 || true
HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 open-mpi netcdf ccache macfuse
;;
esac
fi
if [[ ${dependencies} == "minimal" ]]; then
python -m pip install -e ".[test]" -r minimal_requirements.txt
elif [[ ${dependencies} == "cartopy" ]]; then
python -m pip install 'cartopy>=0.22'
python -m pip install scipy
python -m pip install -e ".[test]"
elif [[ ${dependencies} == "full" ]]; then
python -m pip install -e ".[test,full]"
else
python -m pip install -e ".[test]"
fi
yt config set --local yt log_level 50
cat yt.toml
set +x