Skip to content

Commit 767a64f

Browse files
authored
Merge pull request #5 from jhlegarreta/AddCIToBuildLaTeX
ENH: Add CI to build/test LaTeX document
2 parents b9ef94f + 99bcca2 commit 767a64f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build LaTeX document
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
build_latex:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up Git repository
10+
uses: actions/checkout@v2
11+
- name: Set up LaTeX packages
12+
run: |
13+
sudo apt-get update
14+
sudo apt-get install texlive texlive-publishers texlive-science latexmk
15+
- name: Compile LaTeX document
16+
run: |
17+
cd Document/LaTeX
18+
make
19+
- name: Check pdf files
20+
run: |
21+
set -e
22+
file Document/LaTeX/ArticleExample.pdf | grep -q ' PDF '

README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![Build LaTeX document](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-test-latex.yml/badge.svg?branch=master)](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-test-latex.yml)
2+
3+
[](https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/actions?query=workflow%3A%22Build%2C+test%2C+publish%22+branch%3Amaster)
14
This repository contains a template for submitting
25
Technical Reports to the Insight Journal:
36

0 commit comments

Comments
 (0)