-
Notifications
You must be signed in to change notification settings - Fork 513
40 lines (33 loc) · 1.05 KB
/
check_docs_build.yml
File metadata and controls
40 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Check the Documentation Build
on:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
permissions:
contents: read
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
persist-credentials: false
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7.0.0
with:
python-version: '3.12'
enable-cache: true
- name: Set venv
run: uv venv --python 3.12 $GITHUB_WORKSPACE/venv
- name: Install dependencies
run: . $GITHUB_WORKSPACE/venv/bin/activate && uv pip install -r src/dependencies/requirements/requirements_docs.txt
- name: Build documentation
run: |
. $GITHUB_WORKSPACE/venv/bin/activate
uv pip install -e . --no-deps
uv pip install torch
sphinx-build -b html docs docs/_build/html
env:
JAX_PLATFORMS: cpu
CUDA_VISIBLE_DEVICES: ""