From f699585063f3eedab1d5f45a23ee34bdc05eb033 Mon Sep 17 00:00:00 2001 From: David Wales Date: Wed, 6 Dec 2023 10:02:04 +1100 Subject: [PATCH] Only install docs dependencies when building docs --- .github/workflows/sphinx-gh-pages.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sphinx-gh-pages.yml b/.github/workflows/sphinx-gh-pages.yml index 7cff066..3fe46a5 100644 --- a/.github/workflows/sphinx-gh-pages.yml +++ b/.github/workflows/sphinx-gh-pages.yml @@ -35,7 +35,7 @@ jobs: run: pipx install poetry - name: Build with Sphinx run: | - poetry install + poetry install --only docs source $(poetry env info --path)/bin/activate cd docs make html diff --git a/pyproject.toml b/pyproject.toml index 34fedb4..7455908 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ python = ">=3.8" rich = ">=13.7.0" playwright = ">=1.40.0" -[tool.poetry.group.dev.dependencies] +[tool.poetry.group.docs.dependencies] sphinx = ">=7.0.0" myst-parser = "^2.0.0" sphinx-autoapi = "^3.0.0"