-
Notifications
You must be signed in to change notification settings - Fork 112
73 lines (64 loc) · 2 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
65
66
67
68
69
70
71
72
73
name: CI
on:
push:
pull_request:
# Run daily at 0:01 UTC
schedule:
- cron: '1 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.x' ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --quiet --requirement requirements.txt
python -m pip list
- name: Test README and doc generation
run: |
cp README.md README.bak
cp docs/about.md docs/about.bak
cp docs/index.md docs/index.bak
cp docs/recent.md docs/recent.bak
python make_md.py
if [[ "$(diff README.md README.bak)" ]]; then
echo "ERROR: README is out of sync with HEPML.bib"
echo " run make_md.py and commit changes"
exit 1
fi
if [[ "$(diff docs/about.md docs/about.bak)" ]]; then
echo "ERROR: docs/about.md is out of sync"
echo " run make_md.py and commit changes"
exit 1
fi
if [[ "$(diff docs/index.md docs/index.bak)" ]]; then
echo "ERROR: docs/index.md is out of sync with HEPML.bib"
echo " run make_md.py and commit changes"
exit 1
fi
if [[ "$(diff docs/recent.md docs/recent.bak)" ]]; then
echo "ERROR: docs/recent.md is out of sync with HEPML.bib"
echo " run make_md.py and commit changes"
exit 1
fi
ls -lhtra
- name: Add build info footnote to jheppub.sty
run: |
python footnote_build_info.py
ls -lhtra
- name: Compile LaTeX document
uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add make
make document
- name: List directory contents
run: ls -lhtra