forked from xu-cheng/latex-action
-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (48 loc) · 1.46 KB
/
test.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
name: Test Github Action
on:
push:
schedule:
- cron: '0 0 1 * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v1
- name: Compile basic LaTeX document
uses: ./
with:
root_file: test.tex
working_directory: test/
- name: Compile basic LaTeX document with lualatex
uses: ./
with:
root_file: test.tex
working_directory: test/
compiler: lualatex
args: -file-line-error -interaction=nonstopmode
- name: Compile LaTeX document with math symbols
uses: ./
with:
root_file: math.tex
working_directory: test/
- name: Compile LaTeX document with biblatex/biber
uses: ./
with:
root_file: biblatex.tex
working_directory: test/
extra_packages: biblatex-ieee
- name: Compile LaTeX document with minted
uses: ./
with:
root_file: minted.tex
working_directory: test/
extra_system_packages: python3-pygments
args: "-pdf -latexoption=-shell-escape -latexoption=-file-line-error -latexoption=-interaction=nonstopmode"
- name: Check pdf files
run: |
set -e
file test/test.pdf | grep -q ' PDF '
file test/math.pdf | grep -q ' PDF '
file test/biblatex.pdf | grep -q ' PDF '
file test/minted.pdf | grep -q ' PDF '