forked from psycopg/psycopg
-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (37 loc) · 1.15 KB
/
docs.yml
File metadata and controls
46 lines (37 loc) · 1.15 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
name: Build documentation
on:
push:
# This should disable running the workflow on tags, according to the
# on.<push|pull_request>.<branches|tags> GitHub Actions docs.
branches:
- "*"
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install requirements to generate docs
run: sudo apt-get install -y libgeos-dev
- name: Install Python packages to generate docs
run: |
pip install furo
pip install ./tools/isort-gaussdb/
pip install ./gaussdb[dev,test]
pip install ./gaussdb_pool
pip install types-polib
- name: Check documentation
run: sphinx-build -W -T -b html docs docs/_build/html
- name: Upload built documentation as artifact
uses: actions/upload-artifact@v4
with:
name: gaussdb-docs-html
path: docs/_build/html