-
Notifications
You must be signed in to change notification settings - Fork 28
34 lines (34 loc) · 1 KB
/
documentation.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
name: "Build Documentation"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
documentation:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip' # caching pip dependencies
- name: Install Dependencies
run: |
sudo apt-get install -y pandoc
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
python -m pip install ".[dev,doc]"
- name: Documentation Coverage Report
run: invoke docs.coverage
- name: Build Documentation
run: invoke docs.build
- name: Upload Documentation
uses: actions/upload-artifact@v4
# Only upload the documentation if the push event is triggered by something
# being pushed to the main branch
if: github.event.action == 'push'
with:
name: docs
path: docs/_build