From a1a56f517fed1a2e068cf4e52a34c4c5afbf8121 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 6 Apr 2024 16:00:18 +0200 Subject: [PATCH] CI: Don't stop on Node.traverse() deprecation warning --- .github/workflows/html-macos.yml | 3 ++- .github/workflows/linkcheck.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/html-macos.yml b/.github/workflows/html-macos.yml index 80f7d0fa..f8f7b746 100644 --- a/.github/workflows/html-macos.yml +++ b/.github/workflows/html-macos.yml @@ -39,6 +39,7 @@ jobs: - name: Build HTML env: # There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398) - PYTHONWARNINGS: error,default::DeprecationWarning + # The other warning will be fixed with https://github.com/spatialaudio/nbsphinx/pull/758 + PYTHONWARNINGS: error,default::DeprecationWarning,default:nodes.Node.traverse() is obsoleted by Node.findall():PendingDeprecationWarning run: | $SPHINX doc/ _build/html/ diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 612b63b7..d83eb6cf 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -40,7 +40,8 @@ jobs: - name: Check links env: # There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398) - PYTHONWARNINGS: error,default::DeprecationWarning + # The other warning will be fixed with https://github.com/spatialaudio/nbsphinx/pull/758 + PYTHONWARNINGS: error,default::DeprecationWarning,default:nodes.Node.traverse() is obsoleted by Node.findall():PendingDeprecationWarning run: | $SPHINX -d _doctrees/ doc/ _build/linkcheck/ -b linkcheck -q - name: Upload results