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 1684951
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 @@ -33,7 +33,9 @@ jobs:
env:
# DeprecationWarning: Unimplemented abstract methods {'locate_file'}
# https://github.com/pypa/pip/issues/11684
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.deprecation.RemovedInSphinx10Warning
run: |
$PIP install -r doc/requirements.txt
- name: Build HTML
Expand Down
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.deprecation.RemovedInSphinx10Warning
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.deprecation.RemovedInSphinx10Warning
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.deprecation.RemovedInSphinx10Warning
run: |
$SPHINX doc _build -b latex
- name: Run Sphinx (epub)
Expand Down

0 comments on commit 1684951

Please sign in to comment.