Skip to content

Commit f94eaf1

Browse files
authored
Merge pull request #578 from TeamCOMPAS/latex_CI
Latex CI
2 parents f711a22 + 166b27d commit f94eaf1

40 files changed

+75
-10
lines changed
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: CI Test Compilation of various COMPAS components
1+
name: COMPAS compile test
22

3-
on:
4-
pull_request:
5-
branches: [ dev ]
6-
#push: # testing
3+
on: [pull_request]
74

85
jobs:
96
compas:
10-
name: Build Docker image and push to DockerHub
7+
name: Build COMPAS
118
runs-on: ubuntu-18.04
129
steps:
1310
- uses: actions/checkout@v2
@@ -17,5 +14,3 @@ jobs:
1714

1815
- name: Build Compas
1916
run: cd src && make -j $(nproc) -f Makefile
20-
21-
# TODO: add latex and postprocessing python scripts
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: LaTeX compile test
2+
3+
# Test Latex compiles on pull_requests
4+
# Public documentation on push to dev
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches: [dev]
10+
11+
jobs:
12+
latex:
13+
name: Build LaTeX documentation
14+
runs-on: ubuntu-18.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: sudo apt install texlive-base
21+
22+
# Need to do pdflatex, bibtex, pdflatex, pdflatex
23+
- name: pdflatex main
24+
uses: dante-ev/latex-action@latest
25+
with:
26+
working_directory: docs/COMPAS_LaTeX
27+
root_file: main.tex
28+
compiler: pdflatex
29+
args: -interaction=nonstopmode -shell-escape
30+
31+
- name: bibtex main
32+
uses: dante-ev/latex-action@latest
33+
with:
34+
working_directory: docs/COMPAS_LaTeX
35+
root_file: main.aux
36+
compiler: bibtex
37+
args:
38+
39+
- name: pdflatex main
40+
uses: dante-ev/latex-action@latest
41+
with:
42+
working_directory: docs/COMPAS_LaTeX
43+
root_file: main.tex
44+
compiler: pdflatex
45+
args: -interaction=nonstopmode -shell-escape
46+
47+
- name: pdflatex main
48+
uses: dante-ev/latex-action@latest
49+
with:
50+
working_directory: docs/COMPAS_LaTeX
51+
root_file: main.tex
52+
compiler: pdflatex
53+
args: -interaction=nonstopmode -shell-escape
54+
55+
56+
# If push to dev, publish the documentation
57+
- name: publish documentation
58+
if: github.event_name == 'push'
59+
run: |
60+
git checkout --orphan Documentation
61+
PDF_FILE=COMPAS_Documentation.pdf
62+
mv docs/COMPAS_LaTeX/main.pdf $PDF_FILE
63+
git rm -rf .
64+
git add -f $PDF_FILE
65+
git config user.name "Team COMPAS"
66+
git config user.email "<>"
67+
git commit -m "Documentation update"
68+
git push -f --set-upstream origin Documentation

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Thumbs.db
2121
__pycache__/
2222
COMPAS_Output*/
2323
output*/
24-
.github/
2524
COMPAS
2625
*.log
2726
*.aux
2827
*.toc
2928
*.bbl
3029
*.blg
30+
*.pdf
3131
*.synctex
3232
*.synctex(busy)
3333
*.synctex.gz

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44

55
# Compact Object Mergers: Population Astrophysics & Statistics
66

7+
[![Documentation](https://img.shields.io/badge/Documentation-latest-orange.svg?style=flat)](https://github.com/TeamCOMPAS/COMPAS/blob/Documentation/COMPAS_Documentation.pdf)
8+
79
[//]: ## (Outline features)
810
COMPAS is a publicly available rapid binary population synthesis code (https://compas.science/) that is designed so that evolution prescriptions and model parameters are easily
911
adjustable. COMPAS draws properties for a binary star system from a set of initial distributions, and evolves it from zero-age main sequence to the end of its life as two compact
1012
remnants. It has been used for inference from observations of gravitational-wave mergers, Galactic neutron stars, X-ray binaries, and luminous red novae.
1113

1214
## Documentation
1315
[Getting started](./docs/getting_started.md)
14-
[Specifications](./docs/COMPAS_Doc.pdf)
16+
[Specifications](https://github.com/TeamCOMPAS/COMPAS/blob/Documentation/COMPAS_Documentation.pdf)
1517
[Post-processing](./postProcessing/README.txt)
1618
[Running COMPAS inside a Docker container](./docs/docker.md)
1719

docs/COMPAS_Doc.pdf

-2.24 MB
Binary file not shown.

docs/COMPAS_LaTex/sections/Appendices/Appendices-main.tex renamed to docs/COMPAS_LaTeX/sections/Appendices/Appendices-main.tex

File renamed without changes.

0 commit comments

Comments
 (0)