File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - dev
7+ pull_request :
8+ branches :
9+ - dev
710 workflow_dispatch :
811
912concurrency :
3740 run : |
3841 poetry install --with docs
3942
43+ - name : Test documentation
44+ run : |
45+ make test-docs
46+
4047 - name : build documentation
4148 run : |
4249 make docs
@@ -49,15 +56,16 @@ jobs:
4956 BRANCH_NAME=${BRANCH_NAME////_}
5057 echo BRANCH_NAME=${BRANCH_NAME} >> $GITHUB_ENV
5158
52- - name : save artifact
59+ - name : Upload artifact
5360 uses : actions/upload-artifact@v4
5461 with :
5562 name : ${{ format('github-pages-for-branch-{0}', env.BRANCH_NAME) }}
5663 path : docs/build/
5764 retention-days : 3
5865
59- - name : deploy website
66+ - name : Deploy to GitHub Pages
606768+ if : ${{ github.ref == 'refs/heads/dev' }}
6169 with :
6270 branch : gh-pages
6371 folder : docs/build/html/
Original file line number Diff line number Diff line change 2929.PHONY : docs
3030docs :
3131 $(poetry ) sphinx-apidoc -e -E -f --remove-old -o docs/source/apiref autointent
32+ $(poetry ) python -m sphinx build -b html docs/source docs/build/html
33+
34+ .PHONY : test-docs
35+ test-docs : docs
3236 $(poetry ) python -m sphinx build -b doctest docs/source docs/build/html
3337
3438.PHONY : serve-docs
You can’t perform that action at this time.
0 commit comments