You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
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
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- 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 .[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=$?
|
|
pytest --nbval --current-env docs || EXIT_STATUS=$?
|
|
exit $EXIT_STATUS
|