-
Notifications
You must be signed in to change notification settings - Fork 91
37 lines (35 loc) · 989 Bytes
/
doc_test.yaml
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
name: Test Docs
on:
push:
branches: [main]
pull_request:
env:
POETRY_VERSION: "1.3.1"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: check
run: |
echo ${{ github.event.pull_request.merged }}
echo ${{ github.event.pull_request.labels }}
echo ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'doc-publish') }}
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "poetry"
- name: Install dependencies
shell: bash
run: poetry install --with=doc
- name: sphinx-apidoc
shell: bash
run: |
poetry run poe apidoc
- name: Sphinx build
shell: bash
run: |
poetry run sphinx-build docs/source _build