generated from telekom/reuse-template
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (39 loc) · 1.04 KB
/
test-docs.yml
File metadata and controls
45 lines (39 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-FileCopyrightText: 2025 Deutsche Telekom AG
#
# SPDX-License-Identifier: CC0-1.0
name: Test Documentation Build
permissions:
contents: read
on:
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'wurzel/**'
- 'pyproject.toml'
- '.github/workflows/test-docs.yml'
jobs:
test-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
python-version: "3.11"
- name: Install dependencies
run: make install
- name: Build documentation (without strict mode due to known warnings)
run: |
uv run mkdocs build --strict
- name: Upload documentation artifacts
uses: actions/upload-artifact@v4
with:
name: documentation
path: site/
retention-days: 7