Skip to content

Commit dd00cc4

Browse files
committed
ci: add mkdocs-build job
1 parent 5ea1142 commit dd00cc4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/mkdocs-build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build mkdocs
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- development
7+
- main
8+
9+
jobs:
10+
build-mkdocs:
11+
if: github.event.pull_request.draft == false
12+
13+
runs-on:
14+
- ubuntu-latest
15+
container:
16+
image: python:3.12-slim
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
clean: true
22+
23+
- name: Cache Poetry and pip
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cache/pypoetry
28+
~/.cache/pip
29+
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-poetry-
32+
33+
- name: Install Poetry
34+
uses: snok/install-poetry@v1
35+
with:
36+
version: 2.1.1
37+
38+
- name: Install python dependencies
39+
run: poetry install --with docs
40+
41+
- name: Build docs
42+
shell: bash
43+
run: |
44+
poetry run mkdocs build --strict

0 commit comments

Comments
 (0)