Skip to content

Commit

Permalink
ci(circleci): add build-docs step for check doc building process
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Nov 8, 2023
1 parent bfec609 commit 359dd31
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ jobs:
name: Run pre-commit hooks
command: pre-commit run --all-files

build-docs:
description: "Build docs check (the actual publishing is handled by .readthedocs.yaml)"
executor:
name: docker-executor
steps:
- checkout
- run:
name: Install poetry
command: python -m pip install poetry
- run:
name: Install build docs dependency
command: python -m poetry install --only=docs,dev
- run:
name: Run Sphinx
command: poetry run inv docs.build

workflows:
tests:
jobs:
Expand All @@ -64,3 +80,5 @@ workflows:
<<: *all_branches_and_version_tag
- precommit:
<<: *all_branches_and_version_tag
- build-docs:
<<: *all_branches_and_version_tag
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: 2

build:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ python = "^3.11"
[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"


[tool.poetry.group.docs.dependencies]
sphinx-book-theme = "^1.0.1"

Expand Down

0 comments on commit 359dd31

Please sign in to comment.