Skip to content

Commit 74210fd

Browse files
committed
CI: Cache APT and pandoc download
1 parent 1e9d179 commit 74210fd

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,21 @@ jobs:
2929

3030
- run: pip install -U pip setuptools wheel && pip install -U .
3131

32-
- name: Install lint dependencies
33-
run: |
34-
pip install flake8 coverage mypy types-Markdown
35-
sudo apt update && sudo apt-get install \
32+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2
33+
with:
34+
path: /tmp/pandoc.deb
35+
key: pandoc
36+
37+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2
38+
with:
39+
path: /var/cache/apt/archives/*.deb
40+
key: apt-cache
41+
42+
- run: pip install flake8 coverage mypy types-Markdown
43+
- run: sudo apt update && sudo apt-get install \
3644
texlive-xetex lmodern texlive-fonts-recommended # test_pdf_pandoc
37-
wget -O/tmp/pandoc.deb https://github.com/jgm/pandoc/releases/download/3.1.12.2/pandoc-3.1.12.2-1-amd64.deb && sudo dpkg -i /tmp/pandoc.deb
45+
- run: wget --no-clobber -O/tmp/pandoc.deb https://github.com/jgm/pandoc/releases/download/3.1.12.2/pandoc-3.1.12.2-1-amd64.deb
46+
- run: sudo dpkg -i /tmp/pandoc.deb
3847

3948
- run: find -name '*.md' | xargs .github/lint-markdown.sh
4049
- run: flake8 pdoc setup.py
@@ -59,4 +68,4 @@ jobs:
5968
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
6069

6170
- run: pip install -U pip setuptools wheel && pip install -e .
62-
- run: time doc/build.sh
71+
- run: time doc/build.sh

0 commit comments

Comments
 (0)