Skip to content

Commit bcf67df

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

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,23 @@ jobs:
2929

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

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
40+
key: apt-cache
41+
3242
- name: Install lint dependencies
3343
run: |
3444
pip install flake8 coverage mypy types-Markdown
3545
sudo apt update && sudo apt-get install \
3646
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
47+
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 &&
48+
sudo dpkg -i /tmp/pandoc.deb
3849
3950
- run: find -name '*.md' | xargs .github/lint-markdown.sh
4051
- run: flake8 pdoc setup.py
@@ -59,4 +70,4 @@ jobs:
5970
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
6071

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

0 commit comments

Comments
 (0)