diff --git a/.github/workflows/testing_doc.yml b/.github/workflows/testing_doc.yml new file mode 100644 index 0000000..d2e2624 --- /dev/null +++ b/.github/workflows/testing_doc.yml @@ -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