Skip to content

Commit

Permalink
Fail the docs build on warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Jul 7, 2023
1 parent f0df3b6 commit 9484f1a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Install build docs
shell: bash -l {0}
run: |
pip install .[docs]
pip install .'[all, docs]'
- name: Update packages list
shell: bash -l {0}
Expand All @@ -64,7 +64,7 @@ jobs:
shell: bash -l {0}
run: |
cd docs
make html
make SPHINXOPTS="-W --keep-going" html
- uses: actions/upload-artifact@v3
with:
Expand Down
88 changes: 51 additions & 37 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ description = "Reading and writing scientific file formats"
requires-python = ">=3.8"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
"dask[array]>=2021.3.1",
"python-dateutil",
"h5py>=2.3",
"imageio>=2.16",
"numba>=0.52",
"numpy>=1.20.0",
"pint>=0.8",
"python-box>=6,<7",
"pyyaml",
"scipy>=1.5.0",
"sparse",
"dask[array]>=2021.3.1",
"python-dateutil",
"h5py>=2.3",
"imageio>=2.16",
"numba>=0.52",
"numpy>=1.20.0",
"pint>=0.8",
"python-box>=6,<7",
"pyyaml",
"scipy>=1.5.0",
"sparse",
]
dynamic = ["version"]

Expand All @@ -53,21 +53,35 @@ scalebar_export = ["matplotlib-scalebar", "matplotlib>=3.1.3"]
tiff = ["tifffile>=2020.2.16", "imagecodecs>=2020.1.31"]
usid = ["pyUSID"]
zspy = ["zarr"]
tests = ["pooch", "pytest>=3.6", "pytest-xdist", "pytest-rerunfailures", "pytest-cov"]
docs = ["numpydoc", "pydata-sphinx-theme>=0.13", "sphinx", "sphinx-favicon", "sphinxcontrib-towncrier", "towncrier"]
tests = [
"pooch",
"pytest>=3.6",
"pytest-xdist",
"pytest-rerunfailures",
"pytest-cov"
]
docs = [
"numpydoc",
"pooch",
"pydata-sphinx-theme>=0.13",
"sphinx",
"sphinx-favicon",
"sphinxcontrib-towncrier",
"towncrier"
]
all = [
"rosettasciio[blockfile]",
"rosettasciio[mrcz]",
"rosettasciio[scalebar_export]",
"rosettasciio[tiff]",
"rosettasciio[usid]",
"rosettasciio[zspy]",
"rosettasciio[blockfile]",
"rosettasciio[mrcz]",
"rosettasciio[scalebar_export]",
"rosettasciio[tiff]",
"rosettasciio[usid]",
"rosettasciio[zspy]",
]
dev = [
"black",
"rosettasciio[docs]",
"rosettasciio[all]",
"rosettasciio[tests]"
"black",
"rosettasciio[docs]",
"rosettasciio[all]",
"rosettasciio[tests]"
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 9484f1a

Please sign in to comment.