From bb44c022e90e3833c8cf2dbadd8c3be9b6d577d8 Mon Sep 17 00:00:00 2001 From: Dario Coscia Date: Tue, 1 Oct 2024 16:14:56 +0200 Subject: [PATCH] adding workflow testing doc --- .github/workflows/testing_doc.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/testing_doc.yml diff --git a/.github/workflows/testing_doc.yml b/.github/workflows/testing_doc.yml new file mode 100644 index 00000000..d2e2624b --- /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