-
Notifications
You must be signed in to change notification settings - Fork 67
49 lines (40 loc) · 1.01 KB
/
mkdocs-build.yml
File metadata and controls
49 lines (40 loc) · 1.01 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
46
47
48
49
name: build mkdocs
on:
pull_request:
branches:
- development
- main
jobs:
build-mkdocs:
if: github.event.pull_request.draft == false
runs-on:
- ubuntu-24.04
container:
image: python:3.12-slim
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: Install system dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get --yes install git
- name: Cache uv and pip
uses: actions/cache@v4
with:
path: |
~/.cache/uv
~/.cache/pip
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install python dependencies
run: uv sync --frozen --all-groups
- name: Build docs
shell: bash
run: |
uv run mkdocs build --strict