From 5d3d57f56625f5748aa92704bda2c87f7c3bbb71 Mon Sep 17 00:00:00 2001 From: Luca Picci Date: Fri, 17 May 2024 15:48:01 +0200 Subject: [PATCH] add doc workflow --- .github/workflows/documentation.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..6690569 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,32 @@ +# Build documentation +name: documentation + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + documentation: + runs-on: ubuntu-latest + name: Build documentation + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Install poetry + run: | + python -m pip install --upgrade pip + pip install poetry + + - name: Install package + run: poetry install + + - name: Build documentation + run: poetry run make html --directory docs/ \ No newline at end of file