diff --git a/.github/workflows/commit_checks.yml b/.github/workflows/commit_checks.yml index 9e70c42e..ad5b1751 100644 --- a/.github/workflows/commit_checks.yml +++ b/.github/workflows/commit_checks.yml @@ -40,3 +40,24 @@ jobs: excludeTitle: 'true' checkAllCommitMessages: 'true' accessToken: ${{ secrets.GITHUB_TOKEN }} + check-doc-build: + name: Test Documentation Build + runs-on: ubuntu-latest + steps: + - uses: pandoc/actions/setup@main + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Mock Basilisk + run: | + cp docs/sitecustomize.py $(python -c 'import site; print(site.getsitepackages()[0])')/sitecustomize.py + - name: Install dependencies + run: | + pip install -e '.[docs,rllib]' + # skip finish install steps + - name: Sphinx build + run: | + cd docs + make html + cd ..