Skip to content

Commit

Permalink
CI: ignore deprecated import_object
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Dec 24, 2024
1 parent 40d8cd4 commit 5ca1d16
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/html-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 3 additions & 1 deletion .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/version-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ca1d16

Please sign in to comment.