Skip to content

Commit 99e0929

Browse files
committed
ci(docs): add docs setup
1 parent 709829c commit 99e0929

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,28 @@ jobs:
5858
run: |
5959
source venv/bin/activate
6060
python3.10 -m mypy .
61+
62+
docs:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v1
66+
- name: Set up Python
67+
uses: actions/setup-python@v1
68+
with:
69+
python-version: "3.10"
70+
- name: Install dependencies
71+
run: |
72+
python3.10 -m venv venv
73+
source venv/bin/activate
74+
pip3 install --upgrade pip
75+
python3.10 -m pip install -r requirements.txt
76+
python3.10 setup.py install
77+
- name: Generate Reference Docs
78+
run: |
79+
mkdir ./docs/build
80+
./docs/generate.sh --out=./docs/build/ --pypath=src/
81+
- uses: actions/upload-artifact@v3
82+
name: Upload Docs Preview
83+
with:
84+
name: reference-docs
85+
path: ./docs/build/

0 commit comments

Comments
 (0)