From 8d589d93d98653e63f33c43a7572b5776857b387 Mon Sep 17 00:00:00 2001 From: barneydobson Date: Wed, 6 Nov 2024 19:19:25 +0000 Subject: [PATCH] fix pandoc --- .github/workflows/publish.yml | 22 +++++++++++++++++++++- pyproject.toml | 1 - 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 395f3aaf..0cc7519a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,24 @@ permissions: id-token: write jobs: + test-docs: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install dependencies + run: | + pip install .[doc] + python -c "import pypandoc; pypandoc.download_pandoc()" + + - name: Test Docs + run: mkdocs build + test: uses: ./.github/workflows/ci_template.yml secrets: @@ -106,7 +124,9 @@ jobs: python-version: "3.11" - name: Install dependencies - run: pip install .[doc] + run: | + pip install .[doc] + python -c "import pypandoc; pypandoc.download_pandoc()" - name: Deploy Docs run: mkdocs gh-deploy --force diff --git a/pyproject.toml b/pyproject.toml index b2f56b62..2f11a892 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,7 +83,6 @@ optional-dependencies.doc = [ "mkdocs-material", "mkdocs-material-extensions", "mkdocstrings[python]", - "pandoc", "pypandoc", ] urls.Documentation = "https://imperialcollegelondon.github.io/SWMManywhere/"