Skip to content

Commit 0b0fcda

Browse files
committed
Add pre-commit checks to GitHub CI
Also update GitHub actions to ubuntu-20.04. Trying to use ubuntu-18.04 gives an error now, so we have to use 20.04.
1 parent fea0b59 commit 0b0fcda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/compile.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ env:
1111

1212
jobs:
1313
build:
14-
# TODO: Run on Docker image that has latex pre-installed?
15-
runs-on: [ubuntu-18.04]
14+
runs-on: [ubuntu-20.04]
1615
steps:
17-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v3
17+
- name: Basic checks
18+
run: pip install pre-commit && pre-commit run --all-files --show-diff-on-failure --color=always
1819
- name: Install latex
1920
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make texlive-plain-generic texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-science texlive-fonts-recommended texlive-fonts-extra texlive-bibtex-extra texlive-extra-utils biber latexmk
2021
- name: Build document

0 commit comments

Comments
 (0)