add build workflow #5
Workflow file for this run
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
# vim:sw=2:ts=2 | ||
# build html version of docs to check if it was successful | ||
name: build | ||
# on events | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- 'feature/*' | ||
jobs: | ||
sphinx-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install sphinx sphinx_copybutton myst-parser furo pygments | ||
# - name: Build docs | ||
# run: | | ||
# make clean html SPHINXOPTS="-W --keep-going -n" | ||
- uses: ammaraskar/sphinx-action@master | ||
with: | ||
build-command: "make clean html SPHINXOPTS="-W --keep-going -n" |