Repository navigation
71 lines (63 loc) · 1.75 KB
/
Copy pathdocs-check.yml
File metadata and controls
71 lines (63 loc) · 1.75 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Docs Check
on:
pull_request:
branches: [ '*' ]
paths:
- 'docs/**'
- 'overrides/**'
- 'zensical.toml'
- 'scripts/check_docs.py'
- 'scripts/smoke_docs.py'
- 'archipy/**'
- 'packages/**'
- 'pyproject.toml'
- 'uv.lock'
- 'Makefile'
- '.readthedocs.yaml'
- '.github/workflows/docs-check.yml'
permissions:
contents: read
jobs:
build:
name: docs (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
container: ghcr.io/astral-sh/uv:0.13.9-trixie
env:
UV_PYTHON: ${{ matrix.python-version }}
services:
redis:
image: redis:8.10.3-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 2s
--health-timeout 2s
--health-retries 15
strategy:
fail-fast: false
matrix:
python-version: ["3.14", "3.15"]
steps:
- uses: actions/checkout@v7
- name: Cache uv dependencies
uses: actions/cache@v5
with:
path: ~/.cache/uv
key: uv-docs-${{ runner.arch }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
- name: Install dependencies
run: uv sync --locked --group docs --extra redis
- name: Build the docs in strict mode
env:
UV_NO_SYNC: "true"
READTHEDOCS_CANONICAL_URL: ${{ matrix.python-version == '3.15' && 'https://archipy.readthedocs.io/en/latest/' || '' }}
run: make docs-check
- name: Run documentation examples
env:
UV_NO_SYNC: "true"
REDIS__MASTER_HOST: redis
run: make docs-smoke
docs-check:
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- run: test "${{ needs.build.result }}" = success