-
Notifications
You must be signed in to change notification settings - Fork 45
64 lines (62 loc) · 1.61 KB
/
CI.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
56
57
58
59
60
61
62
63
64
name: CI
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- name: Install Python Dependencies
run: |
pip install -r source/requirements.txt
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng librsvg2-bin
- name: Build HTML
run: |
make html
- name: Archive HTML
uses: actions/upload-artifact@v3
with:
name: phoenix-html
path: build/html/
- name: Build PDF
run: |
make latexpdf
- name: Archive PDF
uses: actions/upload-artifact@v3
with:
name: phoenix-pdf
path: build/latex/phoenix.pdf
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout dev
run: |
git fetch origin dev --depth=1
- uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- name: Install Dependencies
run: |
pip install -r source/requirements.txt
- name: Check Links
run: |
make linkcheck
check-spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: misspell
uses: reviewdog/action-misspell@v1
with:
locale: "US"
reporter: "github-check"
exclude: |
./Legacy/**