-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (48 loc) · 1.17 KB
/
tests.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
name: Run tests
env:
TEMPLATEDIR: ~/.texlive/texmf-local/tex/latex/latex-template
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get install imagemagick librsvg2-bin
pip install Pygments
- name: Use cache
id: cache-install
uses: actions/cache@v3
with:
path: |
${HOME}/.texlive
key: texlive
- name: Set up TeXLive
run: |
./scripts/install_font.sh
./scripts/install_texlive.sh
echo "PATH=$HOME/.texlive/bin/x86_64-linux:$PATH" >> $GITHUB_ENV
- name: Test Lua
run: |
cd tests
make lua-test
- name: Test LaTeX
run: |
mkdir -p ${TEMPLATEDIR}
cp -r ${PWD} ${TEMPLATEDIR}
texhash
make tests
- name: Remove template from TeXLive before caching
if: steps.cache-install.outputs.cache-hit != 'true'
run: |
rm ${TEMPLATEDIR}
texhash