Skip to content

Commit

Permalink
Add documentation build to Github Actions (#9569)
Browse files Browse the repository at this point in the history
* Add documentation build to Github Actions

* Update requirements for documentation builds

* Minor optimization - only install requirements for documentation in documentation job
  • Loading branch information
Will Barrett authored Apr 20, 2020
1 parent cb51d78 commit 132d774
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/superset-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,29 @@ jobs:
# `-j 0` run Pylint in parallel
run: pylint -j 0 superset

docs:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.6]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
uses: apache-superset/cached-dependencies@adc6f73
with:
run: |
pip-install
pip install -r docs/requirements.txt
- name: Copy Images
run: cp -r superset-frontend/images/ docs/_static/images/
- name: Build documentation
run: sphinx-build -b html docs _build/html -W

test-postgres:
runs-on: ubuntu-18.04
strategy:
Expand Down
4 changes: 2 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
sphinx==2.1.2
sphinx_autodoc_typehints==1.6.0
sphinx==3.0.1
sphinx_autodoc_typehints==1.10.3
sphinx-rtd-theme==0.4.3

0 comments on commit 132d774

Please sign in to comment.