File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Publish docs via GitHub Pages
1
+ name : MkDocs
2
2
3
3
on :
4
4
push :
10
10
- " deployment/**"
11
11
- " docs/**"
12
12
- " src/**"
13
- - " .github/workflows/deploy- mkdocs.yaml"
13
+ - " .github/workflows/mkdocs.yaml"
14
14
15
15
jobs :
16
+ test :
17
+ name : Test docs
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Checkout main
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Set up Python 3.11
24
+ uses : actions/setup-python@v5
25
+ with :
26
+ python-version : 3.11
27
+
28
+ - uses : astral-sh/setup-uv@v4
29
+ with :
30
+ enable-cache : true
31
+
32
+ - name : Test docs
33
+ run : uv run --extra docs mkdocs build --strict
34
+
16
35
build :
17
36
name : Deploy docs
18
37
runs-on : ubuntu-latest
38
+ if : github.ref_name == 'main'
19
39
steps :
20
40
- name : Checkout main
21
41
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments