Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7946cb

Browse files
committed
add simple layout check
1 parent 8655282 commit a7946cb

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/main.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,19 @@ jobs:
1818
python-version: 3.6
1919
- name: Install dependencies
2020
run: |
21-
sudo apt-get update
22-
sudo apt-get install \
21+
sudo apt update
22+
sudo apt install \
2323
fontconfig \
2424
libgeos++-dev \
25-
libproj-dev
25+
libproj-dev \
26+
poppler-utils
2627
python -m pip install --upgrade pip
2728
pip install -r requirements/requirements-base.txt
2829
pip install -r requirements/requirements.txt
2930
- name: Install Tex Live
3031
run: |
31-
sudo apt-get update
32-
sudo apt-get install \
32+
sudo apt update
33+
sudo apt install \
3334
texlive-base \
3435
texlive-extra-utils \
3536
texlive-fonts-extra \
@@ -45,7 +46,15 @@ jobs:
4546
cp -r fonts/ /usr/share/fonts/
4647
fc-cache
4748
make figures cheatsheets handouts
49+
- name: Check layouts
50+
run: |
51+
set -x
52+
[[ "$(pdfinfo cheatsheets.pdf | grep Pages | awk '{print $2}')" == "2" ]] || exit 1
53+
[[ "$(pdfinfo handout-tips.pdf | grep Pages | awk '{print $2}')" == "1" ]] || exit 1
54+
[[ "$(pdfinfo handout-beginner.pdf | grep Pages | awk '{print $2}')" == "1" ]] || exit 1
55+
[[ "$(pdfinfo handout-intermediate.pdf | grep Pages | awk '{print $2}')" == "1" ]] || exit 1
4856
- uses: actions/upload-artifact@v2
57+
if: ${{ always() }}
4958
with:
5059
name: build
5160
path: |

0 commit comments

Comments
 (0)