Skip to content

Commit 29266fd

Browse files
authored
MAINT: Improve LaTeX Configuration (#259)
1 parent 3d6b065 commit 29266fd

File tree

3 files changed

+55
-29
lines changed

3 files changed

+55
-29
lines changed

.github/workflows/cache.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ jobs:
3333
- uses: actions/checkout@v3
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
36+
# Install LaTeX (Support for matplotlib)
37+
- name: Install latex dependencies
38+
shell: bash -l {0}
39+
run: |
40+
apt-get -qq update
41+
export DEBIAN_FRONTEND=noninteractive
42+
apt-get install -y tzdata
43+
apt-get install -y \
44+
texlive-latex-recommended \
45+
texlive-latex-extra \
46+
texlive-fonts-recommended \
47+
texlive-fonts-extra \
48+
texlive-xetex \
49+
latexmk \
50+
xindy \
51+
dvipng \
52+
ghostscript \
53+
cm-super
3654
- name: Setup Anaconda
3755
uses: conda-incubator/setup-miniconda@v2
3856
with:

.github/workflows/ci.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ jobs:
3030
- uses: actions/checkout@v3
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
33+
# Install LaTeX (Support for matplotlib and PDF builds)
34+
- name: Install latex dependencies
35+
shell: bash -l {0}
36+
run: |
37+
apt-get -qq update
38+
export DEBIAN_FRONTEND=noninteractive
39+
apt-get install -y tzdata
40+
apt-get install -y \
41+
texlive-latex-recommended \
42+
texlive-latex-extra \
43+
texlive-fonts-recommended \
44+
texlive-fonts-extra \
45+
texlive-xetex \
46+
latexmk \
47+
xindy \
48+
dvipng \
49+
ghostscript \
50+
cm-super
3351
- name: Setup Anaconda
3452
uses: conda-incubator/setup-miniconda@v2
3553
with:
@@ -44,20 +62,6 @@ jobs:
4462
run: |
4563
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4664
nvidia-smi
47-
- name: Install latex dependencies
48-
shell: bash -l {0}
49-
run: |
50-
apt-get -qq update
51-
export DEBIAN_FRONTEND=noninteractive
52-
apt-get install -y tzdata
53-
apt-get install -y \
54-
texlive-latex-recommended \
55-
texlive-latex-extra \
56-
texlive-fonts-recommended \
57-
texlive-fonts-extra \
58-
texlive-xetex \
59-
latexmk \
60-
xindy
6165
- name: Display Conda Environment Versions
6266
shell: bash -l {0}
6367
run: conda list

.github/workflows/publish.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,25 @@ jobs:
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
36+
# Install LaTeX (Support for matplotlib and PDF builds)
37+
- name: Install latex dependencies
38+
shell: bash -l {0}
39+
run: |
40+
apt-get -qq update
41+
export DEBIAN_FRONTEND=noninteractive
42+
apt-get install -y tzdata
43+
apt-get install -y \
44+
texlive-latex-recommended \
45+
texlive-latex-extra \
46+
texlive-fonts-recommended \
47+
texlive-fonts-extra \
48+
texlive-xetex \
49+
latexmk \
50+
xindy \
51+
dvipng \
52+
ghostscript \
53+
cm-super
3654
- name: Setup Anaconda
3755
uses: conda-incubator/setup-miniconda@v2
3856
with:
@@ -47,20 +65,6 @@ jobs:
4765
run: |
4866
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4967
nvidia-smi
50-
- name: Install Supporting Packages
51-
run: |
52-
apt-get -qq update
53-
export DEBIAN_FRONTEND=noninteractive
54-
apt-get install -y tzdata
55-
apt-get install -y git
56-
apt-get install -y \
57-
texlive-latex-recommended \
58-
texlive-latex-extra \
59-
texlive-fonts-recommended \
60-
texlive-fonts-extra \
61-
texlive-xetex \
62-
latexmk \
63-
xindy
6468
- name: Display Conda Environment Versions
6569
shell: bash -l {0}
6670
run: conda list

0 commit comments

Comments
 (0)