From 8ad0b832aa78a9100ffb2df85ea8997a52835505 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:00:01 -0800 Subject: [PATCH] Filter out doctest warning (#8539) * Filter out doctest warning Trying to fix #8537. Not sure it'll work and can't test locally so seeing if it passes CI * try using the CLI to ignore the warning --------- Co-authored-by: Justus Magin --- .github/workflows/ci-additional.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-additional.yaml b/.github/workflows/ci-additional.yaml index cd6edcf7b3a..49b10fbbb59 100644 --- a/.github/workflows/ci-additional.yaml +++ b/.github/workflows/ci-additional.yaml @@ -76,7 +76,11 @@ jobs: # Raise an error if there are warnings in the doctests, with `-Werror`. # This is a trial; if it presents an problem, feel free to remove. # See https://github.com/pydata/xarray/issues/7164 for more info. - python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror + + # ignores: + # 1. h5py: see https://github.com/pydata/xarray/issues/8537 + python -m pytest --doctest-modules xarray --ignore xarray/tests -Werror \ + -W "ignore:h5py is running against HDF5 1.14.3:UserWarning" mypy: name: Mypy