From a134411fb02cd60b7568f1e6be3a444b1520a1f4 Mon Sep 17 00:00:00 2001 From: brentru Date: Wed, 23 Sep 2020 16:42:08 -0400 Subject: [PATCH] add sphinx docu build --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 474339f..ac73401 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,10 +18,16 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install library run: python3 setup.py install + - name: Install sphinx + run: pip3 install pylint Sphinx sphinx-rtd-theme - name: Run all unittests env: SECRET_IO_KEY: ${{ secrets.CI_IO_KEY }} SECRET_IO_USER: ${{ secrets.CI_IO_USERNAME }} run: | 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 ..