-
Notifications
You must be signed in to change notification settings - Fork 35
54 lines (45 loc) · 1.26 KB
/
accelerate_doc.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Accelerate doc build
on: [pull_request]
jobs:
integration_doc_build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/checkout@v4
with:
repository: 'huggingface/doc-builder'
path: doc-builder
- uses: actions/checkout@v4
with:
repository: 'huggingface/accelerate'
path: accelerate
ref: 16eb6d76bf987c7d8d877ce5152f2e29878eab37
- name: Loading cache.
uses: actions/cache@v4
id: cache
with:
path: ~/.cache/pip
key: v1-test_build_doc
restore-keys: |
v1-test_build_doc-${{ hashFiles('setup.py') }}
v1-test_build_doc
- name: Setup environment
run: |
cd doc-builder
pip install .
cd ..
cd accelerate
pip install .[dev]
cd ..
- name: Make documentation
run: |
cd doc-builder &&
doc-builder build accelerate ../accelerate/docs/source --build_dir ../build_dir --clean --html &&
cd ..
env:
NODE_OPTIONS: --max-old-space-size=6656