-
Notifications
You must be signed in to change notification settings - Fork 4k
47 lines (39 loc) · 1.27 KB
/
documentation.yml
File metadata and controls
47 lines (39 loc) · 1.27 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
41
42
43
44
45
46
47
name: Documentation
on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths:
- 'torch_geometric/**'
- 'docs/**'
- 'pyproject.toml'
- '.github/actions/setup/action.yml'
- '.github/workflows/documentation.yml'
pull_request:
paths:
- 'torch_geometric/**'
- 'docs/**'
- 'pyproject.toml'
- '.github/actions/setup/action.yml'
- '.github/workflows/documentation.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ startsWith(github.ref, 'refs/pull/') || github.run_number }} # yamllint disable-line
# Only cancel intermediate builds if on a PR:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
make_html:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup packages
uses: ./.github/actions/setup
with:
full_install: false
- name: Install main package
run: |
uv pip install -e . nbsphinx git+https://github.com/pyg-team/pyg_sphinx_theme.git
- name: Build documentation
working-directory: ./docs
run: |
sphinx-build -M html "source" "build" -W # Fail on warning.