File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments