From cba493089238326ba8c893a1c20f50bd2da29daa Mon Sep 17 00:00:00 2001 From: Jerry Pussinen Date: Thu, 14 Mar 2024 13:47:08 +0200 Subject: [PATCH] Add CI checks for building docs --- .github/workflows/test.yml | 1 + {{cookiecutter.project_slug}}/.github/workflows/test.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bf50f1..28fd704 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,3 +65,4 @@ jobs: cd example-project poetry install poetry run pre-commit run -a + poetry run mkdocs build diff --git a/{{cookiecutter.project_slug}}/.github/workflows/test.yml b/{{cookiecutter.project_slug}}/.github/workflows/test.yml index 27cf294..ddd4691 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/test.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/test.yml @@ -44,4 +44,11 @@ jobs: - uses: ./.github/actions/python-poetry-env with: python-version: ${{ matrix.python-version }} - - run: poetry run pytest{% endraw %} + - run: poetry run pytest + + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./.github/actions/python-poetry-env + - run: poetry run mkdocs build{% endraw %}