-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (46 loc) · 1.36 KB
/
build.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
name: Sphinx Build in CI
on:
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Clone substra
uses: actions/checkout@v2
with:
repository: substra/substra
path: substra
ref: main
- name: Clone substrafl
uses: actions/checkout@v2
with:
repository: substra/substrafl
path: substrafl
ref: main
- name: Install substra and substrafl
run: |
pip install -e ./substrafl
pip install -e ./substra
- name: Copy substra and substrafl api doc in the doc
run: |
cp -r substra/references docs/source/documentation/references
cp -r substrafl/docs/api docs/source/substrafl_doc/
- name: Install Pandoc
run: |
sudo wget https://github.com/jgm/pandoc/releases/download/3.1.11.1/pandoc-3.1.11.1-1-amd64.deb
sudo dpkg -i pandoc-3.1.11.1-1-amd64.deb
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Sphinx make
working-directory: ./docs
run: make clean html