Skip to content

Commit

Permalink
Build doc as part of the CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianp committed Sep 5, 2023
1 parent 5bf8d3d commit cc23de0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,29 @@ jobs:
python -c "import jaxlib; print('jaxlib', jaxlib.__version__)"
pytest tests
shell: bash


build-and-test-docs:
name: "Build documentation"
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
if: ${{github.ref != 'refs/heads/main'}}
- uses: "actions/checkout@v3"
- name: Set up Python 3.11
uses: "actions/setup-python@v4"
with:
python-version: 3.11
- name: Install dependencies
run: |
set -xe
pip install --upgrade pip setuptools wheel
pip install -r docs/requirements.txt
- name: Build documentation
run: |
set -xe
python -VV
cd docs && make clean && make html
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ tensorflow-datasets
dm-haiku
flax
jupytext
scikit-learn

0 comments on commit cc23de0

Please sign in to comment.