-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (37 loc) · 1.01 KB
/
pull_request.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
---
name: CI
on:
pull_request:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Update repositories
run: |
sudo apt update
- name: Install LaTeX dependencies
run: |
sudo apt-get install -f -y texlive-latex-extra latexmk
- name: Setup Python
uses: actions/setup-python@v1
- name: Install Sphinx
run: |
pip install --user --upgrade --upgrade-strategy eager sphinx sphinx-rtd-theme sphinx-copybutton restructuredtext_lint rstcheck pygments
- name: Lint rst
run: |
set -x
python3 copyreplace.py *.rst
rstcheck --ignore-languages c,c++ --report-level warning *.rep
rm -f *.rep
- name: Build web documentation
run: |
make html
- name: Build PDF documentation
run: |
make latexpdf
- name: Build EPUB documentation
run: |
make epub