Skip to content

Commit a134411

Browse files
author
brentru
committed
add sphinx docu build
1 parent 669f57a commit a134411

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ jobs:
1818
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
1919
- name: Install library
2020
run: python3 setup.py install
21+
- name: Install sphinx
22+
run: pip3 install pylint Sphinx sphinx-rtd-theme
2123
- name: Run all unittests
2224
env:
2325
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
2426
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }}
2527
run: |
2628
cd tests/
27-
ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover
29+
ADAFRUIT_IO_KEY="$SECRET_IO_KEY" ADAFRUIT_IO_USERNAME="$SECRET_IO_USER" python -m unittest discover
30+
cd ..
31+
- name: Generate documentation
32+
run: |
33+
cd docs && sphinx-build -E -W -b html . _build/html && cd ..

0 commit comments

Comments
 (0)