diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6abf2b61..369db5f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,3 +43,27 @@ jobs: python -c "import jaxlib; print('jaxlib', jaxlib.__version__)" pytest tests shell: bash + + build-and-test-docs: + 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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5cd49b9a..7694f5f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,7 @@ # 'pre-commit run --all' +repos: - repo: https://github.com/mwouts/jupytext rev: v1.13.6 hooks: