modified examples #484
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build documentation | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-docs: | |
name: Build documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# make sure tags are fetched so we can get a version | |
- run: | | |
git fetch --prune --unshallow --tags | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
# make sure to use the same version as in .readthedocs.yml | |
python-version: "3.11" | |
- name: Install requirements | |
run: pip install -r doc/requirements.txt | |
- name: Build docs | |
run: make -C doc html SPHINXOPTS="-W --keep-going" |