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 837bea6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 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
12 changes: 9 additions & 3 deletions .github/workflows/version-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,24 @@ 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)
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 epub

0 comments on commit 837bea6

Please sign in to comment.