Skip to content

Commit f13edb9

Browse files
ci: add ci job to ensure that docs are building correctly
1 parent 02641d8 commit f13edb9

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Verify docs build correctly
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [opened, reopened, synchronize]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- uses: actions/checkout@v5
14+
15+
- name: Install extra dependencies for a python install
16+
run: |
17+
sudo apt-get update
18+
sudo apt -y install --no-install-recommends liblzma-dev libbz2-dev libreadline-dev
19+
20+
- name: Install asdf cli
21+
uses: asdf-vm/actions/setup@b7bcd026f18772e44fe1026d729e1611cc435d47
22+
23+
- name: Install software through asdf
24+
uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47
25+
26+
- name: reshim asdf
27+
run: asdf reshim
28+
29+
- name: ensure poetry using desired python version
30+
run: poetry env use $(asdf which python)
31+
32+
- name: install docs requirements
33+
run: |
34+
poetry install --sync --no-interaction --with docs
35+
36+
- name: verify docs build correctly
37+
run: poetry run zensical build --strict

0 commit comments

Comments
 (0)