parent
beba237528
commit
e1a2ea0925
@ -1,38 +0,0 @@
|
||||
name: Docs Tests
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Base Setup
|
||||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
|
||||
with:
|
||||
python_version: '3.7'
|
||||
- name: Install the Python dependencies
|
||||
run: |
|
||||
pip install -e .[dev,test] codecov
|
||||
pip install -r docs/doc-requirements.txt
|
||||
wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
|
||||
- name: List installed packages
|
||||
run: |
|
||||
pip freeze
|
||||
pip check
|
||||
- name: Run tests on documentation
|
||||
run: |
|
||||
EXIT_STATUS=0
|
||||
make -C docs/ html SPHINXOPTS="-W" || EXIT_STATUS=$?
|
||||
# Ignore warnings to work around
|
||||
# # https://github.com/computationalmodelling/nbval/issues/180
|
||||
pytest --nbval --current-env -W default docs || EXIT_STATUS=$?
|
||||
exit $EXIT_STATUS
|
||||
@ -1,4 +1,9 @@
|
||||
conda:
|
||||
file: docs/environment.yml
|
||||
version: 2
|
||||
sphinx:
|
||||
configuration: docs/source/conf.py
|
||||
python:
|
||||
version: 3
|
||||
version: 3.8
|
||||
install:
|
||||
# install notebook itself
|
||||
- method: pip
|
||||
path: ".[docs]"
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
myst_parser
|
||||
nbsphinx
|
||||
pydata-sphinx-theme
|
||||
sphinx>=1.3.6
|
||||
sphinxcontrib_github_alt
|
||||
@ -1,20 +0,0 @@
|
||||
name: notebook_docs
|
||||
channels:
|
||||
- conda-forge
|
||||
dependencies:
|
||||
- python=3.8
|
||||
- pydata-sphinx-theme
|
||||
- jinja2
|
||||
- tornado
|
||||
- nbformat
|
||||
- jupyter_client
|
||||
- ipykernel
|
||||
- pip
|
||||
- sphinx
|
||||
- terminado
|
||||
- myst-parser
|
||||
- pip:
|
||||
- nbsphinx
|
||||
- Send2Trash
|
||||
- prometheus_client
|
||||
- sphinxcontrib_github_alt
|
||||
Loading…
Reference in new issue