adding workflow testing doc
This commit is contained in:
committed by
Nicola Demo
parent
24317b6fa7
commit
bb44c022e9
31
.github/workflows/testing_doc.yml
vendored
Normal file
31
.github/workflows/testing_doc.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Test Sphinx Documentation Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python
|
||||
uses: ammaraskar/sphinx-action@7.4.7
|
||||
pre-build-command: "python3 -m pip install .[docs]"
|
||||
docs-folder: "docs/"
|
||||
|
||||
- name: Build Sphinx documentation
|
||||
run: |
|
||||
cd docs
|
||||
make html
|
||||
Reference in New Issue
Block a user