-
Notifications
You must be signed in to change notification settings - Fork 28
50 lines (42 loc) · 1.02 KB
/
pr-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
name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run:
apt-get install -y \
wget \
unzip \
git \
g++ \
cmake \
ninja-build \
linux-tools-common \
linux-tools-generic \
curl
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install jupedsim
run: |
pip install .
- name: Build documentation
run: |
python3 -m pip install docs/requirements.txt
sphinx-build docs/source docs/build -j$(nproc)
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/build/