From 4f463924fc8b0202b9835b7e871c7dc3e5dd6279 Mon Sep 17 00:00:00 2001 From: jchabloz Date: Wed, 3 Jan 2024 22:21:19 +0100 Subject: [PATCH] Updated main action workflow + added doc workflow --- .github/workflows/builddocs.yml | 25 +++++++++++++++++++++++++ .github/workflows/makefile.yml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/builddocs.yml diff --git a/.github/workflows/builddocs.yml b/.github/workflows/builddocs.yml new file mode 100644 index 0000000..88f8edf --- /dev/null +++ b/.github/workflows/builddocs.yml @@ -0,0 +1,25 @@ +name: Build docs + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + name: Setup environment + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e ./python + pip install sphinx sphinx-rtd-theme myst-parser + - name: Build documentation + run: | + sphinx-build -M html ./docs ./docs/_build + diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index c6847e2..d166489 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -1,4 +1,4 @@ -name: Builds and test CI +name: Builds and test on: push: