add sphinx docu build
This commit is contained in:
parent
669f57ad4d
commit
a134411fb0
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -18,10 +18,16 @@ jobs:
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
- name: Install library
|
- name: Install library
|
||||||
run: python3 setup.py install
|
run: python3 setup.py install
|
||||||
|
- name: Install sphinx
|
||||||
|
run: pip3 install pylint Sphinx sphinx-rtd-theme
|
||||||
- name: Run all unittests
|
- name: Run all unittests
|
||||||
env:
|
env:
|
||||||
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
|
SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }}
|
||||||
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }}
|
SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }}
|
||||||
run: |
|
run: |
|
||||||
cd tests/
|
cd tests/
|
||||||
ADAFRUIT_IO_KEY=$SECRET_IO_KEY ADAFRUIT_IO_USERNAME=$SECRET_IO_USER python -m unittest discover
|
ADAFRUIT_IO_KEY="$SECRET_IO_KEY" ADAFRUIT_IO_USERNAME="$SECRET_IO_USER" python -m unittest discover
|
||||||
|
cd ..
|
||||||
|
- name: Generate documentation
|
||||||
|
run: |
|
||||||
|
cd docs && sphinx-build -E -W -b html . _build/html && cd ..
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue