Skip to content
Snippets Groups Projects
Commit 50f3768c authored by Philipp Arras's avatar Philipp Arras
Browse files

Add documentation build

parent 9ebd6519
No related branches found
No related tags found
1 merge request!19Export
Pipeline #103471 canceled
...@@ -6,6 +6,7 @@ variables: ...@@ -6,6 +6,7 @@ variables:
stages: stages:
- build_docker - build_docker
- testing - testing
- release
build_docker_from_scratch: build_docker_from_scratch:
only: only:
...@@ -31,10 +32,12 @@ build_docker_from_cache: ...@@ -31,10 +32,12 @@ build_docker_from_cache:
- docker build -t $CONTAINER_TEST_IMAGE . - docker build -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE - docker push $CONTAINER_TEST_IMAGE
before_script:
- pip3 install --user .
mytest: mytest:
stage: testing stage: testing
script: script:
- pip3 install .
- pytest-3 -q --cov=resolve test - pytest-3 -q --cov=resolve test
coverage: '/^TOTAL.+?(\d+\%)$/' coverage: '/^TOTAL.+?(\d+\%)$/'
...@@ -43,10 +46,17 @@ test_mpi: ...@@ -43,10 +46,17 @@ test_mpi:
variables: variables:
OMPI_MCA_btl_vader_single_copy_mechanism: none OMPI_MCA_btl_vader_single_copy_mechanism: none
script: script:
- pip3 install .
- mpiexec -n 2 --bind-to none pytest-3 -q test/test_mpi - mpiexec -n 2 --bind-to none pytest-3 -q test/test_mpi
# staticchecks: pages:
# stage: testing stage: release
# script: script:
# - flake8 . - rm -rf docs/build docs/source/mod
- sh docs/generate.sh
- mv docs/build public
artifacts:
paths:
- public
# only:
# - master
...@@ -13,7 +13,8 @@ RUN pip3 install astropy ...@@ -13,7 +13,8 @@ RUN pip3 install astropy
RUN apt-get install -qq python3-mpi4py RUN apt-get install -qq python3-mpi4py
# Testing dependencies # Testing dependencies
RUN apt-get install -qq python3-pytest-cov RUN apt-get install -qq python3-pytest-cov
RUN pip3 install flake8 # Documentation dependencies
RUN apt-get install -qq python3-sphinx-rtd-theme
# Create user (openmpi does not like to be run as root) # Create user (openmpi does not like to be run as root)
RUN useradd -ms /bin/bash testinguser RUN useradd -ms /bin/bash testinguser
......
sphinx-apidoc -e -o docs/source/mod resolve
sphinx-build -b html docs/source/ docs/build/
extensions = [
'sphinx.ext.napoleon', # Support for NumPy and Google style docstrings
'sphinx.ext.imgmath', # Render math as images
'sphinx.ext.viewcode' # Add links to highlighted source code
]
master_doc = 'index'
napoleon_google_docstring = False
napoleon_numpy_docstring = True
napoleon_use_ivar = True
napoleon_use_admonition_for_notes = True
napoleon_use_admonition_for_examples = True
napoleon_use_admonition_for_references = True
napoleon_include_special_with_doc = True
project = u'resolve'
copyright = u'2019-2021, Max-Planck-Society'
author = u'Philipp Arras'
# FIXME release = resolve.version.__version__
# FIXME version = release[:-2]
language = None
exclude_patterns = []
add_module_names = False
html_theme = "sphinx_rtd_theme"
Resolve
=======
Resolve is a Bayesian radio imaging algorithm.
References
----------
FIXME
Contents
........
.. toctree::
:maxdepth: 2
Package Documentation <mod/resolve>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment