-
Notifications
You must be signed in to change notification settings - Fork 19
78 lines (74 loc) · 1.97 KB
/
docs.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Docs
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install UV
uses: astral-sh/setup-uv@v5
- name: Create Venv
run: uv sync --all-extras
- name: Run notebooks
run: find . -name "*.ipynb" -not -path "*/tests/*" -not -path "*/.ipynb_checkpoints/*" | xargs parallel uv run papermill {} {} -k python3 ':::'
- name: Upload artifacts [internals]
uses: actions/upload-artifact@v4
with:
name: internals
path: ./internals
- name: Upload artifacts [examples]
uses: actions/upload-artifact@v4
with:
name: examples
path: ./examples
docs:
runs-on: ubuntu-latest
needs:
- run
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts [internals]
uses: actions/download-artifact@v4
with:
name: internals
path: ./internals
- name: Download artifacts [examples]
uses: actions/download-artifact@v4
with:
name: examples
path: ./examples
- name: Install UV
uses: astral-sh/setup-uv@v5
- name: Create Venv
run: uv sync --all-extras
- name: Build docs
run: make docs && touch docs/build/html/.nojekyll
- name: Upload artifacts [docs]
uses: actions/upload-artifact@v4
with:
name: docs
path: ./docs/build/html
pages:
runs-on: ubuntu-latest
needs:
- docs
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download 'docs' artifact
uses: actions/download-artifact@master
with:
name: docs
path: docs/build/html
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: pages
folder: docs/build/html