Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ defaults:
run:
shell: bash

env:
HOMEBREW_NO_AUTO_UPDATE: 1

jobs:

build:
Expand Down Expand Up @@ -115,11 +112,15 @@ jobs:
run: |
source .venv/${{matrix.venv-loc}}/activate
pytest yt --color=yes
env:
MPLCONFIGDIR: tests
- name: Run Tests (nose)
if: matrix.test-runner == 'nose'
run: |
source .venv/${{matrix.venv-loc}}/activate
cat nose_ignores.txt | xargs python -m nose -c nose_unit.cfg --traverse-namespace
env:
MPLCONFIGDIR: tests

image-tests:
name: Image tests
Expand Down Expand Up @@ -157,13 +158,17 @@ jobs:
--mpl-results-path=pytest_mpl_results \
--mpl-baseline-path=tests/pytest_mpl_baseline \
-rxXs # show extra info on xfailed, xpassed, and skipped tests
env:
MPLCONFIGDIR: tests

- name: Generate new image baseline
if: failure()
run: |
pytest yt --color=yes --mpl -m mpl_image_compare \
--mpl-generate-path=pytest_mpl_new_baseline \
--last-failed
env:
MPLCONFIGDIR: tests

# always attempt to upload artifacts, even
# (and especially) in case of failure.
Expand Down
16 changes: 2 additions & 14 deletions tests/ci_install.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
set -x # Show which command is being run

# Sets default backend to Agg
cp tests/matplotlibrc .

# Step 1: pre-install required packages
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
sudo apt-get -qqy install libfuse2
;;
osx|macOS)
sudo mkdir -p /usr/local/man
sudo chown -R "${USER}:admin" /usr/local/man
# uninstalling pkg-config to workaround a bug in macOS image
# https://github.com/Homebrew/homebrew-core/pull/198691#issuecomment-2495500991
# this can be cleaned-up once the following patch is released:
# https://github.com/actions/runner-images/pull/11015
HOMEBREW_NO_AUTO_UPDATE=1 brew uninstall [email protected] || true
HOMEBREW_NO_AUTO_UPDATE=1 brew install hdf5 open-mpi netcdf ccache macfuse
HOMEBREW_NO_AUTO_UPDATE=1 brew install macfuse
;;
esac
fi
Expand Down