Skip to content

Commit 2953b4d

Browse files
committed
New doc test github action
1 parent b5d79dd commit 2953b4d

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Build Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.12'
22+
23+
- name: Install Poetry
24+
run: |
25+
curl -sSL https://install.python-poetry.org | python -
26+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
27+
28+
- name: Install dependencies
29+
run: poetry install --with doc
30+
31+
- name: Build documentation
32+
run: poetry run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
33+
- name: Upload build log
34+
uses: actions/upload-artifact@v4.6.2
35+
with:
36+
name: sphinx-build-log
37+
path: sphinx_build.log
38+

0 commit comments

Comments
 (0)