From 5ca1d1615860fb717ea4761d7fe000be34a4fa06 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 24 Dec 2024 09:32:21 +0100 Subject: [PATCH] CI: ignore deprecated import_object --- .github/workflows/html-macos.yml | 4 +++- .github/workflows/linkcheck.yml | 4 +++- .github/workflows/version-matrix.yml | 8 ++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/html-macos.yml b/.github/workflows/html-macos.yml index 0a0ce059..429b3332 100644 --- a/.github/workflows/html-macos.yml +++ b/.github/workflows/html-macos.yml @@ -39,6 +39,8 @@ 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 + # RemovedInSphinx10Warning: 'sphinx.util.import_object' is deprecated + # https://github.com/sphinx-doc/sphinx/issues/13083 + PYTHONWARNINGS: error,default::DeprecationWarning,default:'sphinx.util.import_object' run: | $SPHINX doc/ _build/html/ diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 47bfee27..b4045f77 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -40,7 +40,9 @@ 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 + # RemovedInSphinx10Warning: 'sphinx.util.import_object' is deprecated + # https://github.com/sphinx-doc/sphinx/issues/13083 + PYTHONWARNINGS: error,default::DeprecationWarning,default:'sphinx.util.import_object' run: | $SPHINX -d _doctrees/ doc/ _build/linkcheck/ -b linkcheck -q - name: Upload results diff --git a/.github/workflows/version-matrix.yml b/.github/workflows/version-matrix.yml index 2fd9aaa8..c5154e53 100644 --- a/.github/workflows/version-matrix.yml +++ b/.github/workflows/version-matrix.yml @@ -79,13 +79,17 @@ jobs: - name: Run Sphinx (HTML) env: # There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398) - PYTHONWARNINGS: error,default::DeprecationWarning + # RemovedInSphinx10Warning: 'sphinx.util.import_object' is deprecated + # https://github.com/sphinx-doc/sphinx/issues/13083 + PYTHONWARNINGS: error,default::DeprecationWarning,default:'sphinx.util.import_object' run: | $SPHINX doc _build -b html - name: Run Sphinx (LaTeX, but without running LaTeX) env: # There is a weird warning from jupyter_core (https://github.com/jupyter/jupyter_core/issues/398) - PYTHONWARNINGS: error,default::DeprecationWarning + # RemovedInSphinx10Warning: 'sphinx.util.import_object' is deprecated + # https://github.com/sphinx-doc/sphinx/issues/13083 + PYTHONWARNINGS: error,default::DeprecationWarning,default:'sphinx.util.import_object' run: | $SPHINX doc _build -b latex - name: Run Sphinx (epub)