8000 speedup sphinx build/linting with caching doctrees and pip cache · symfony/symfony-docs@65f9417 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65f9417

Browse files
author
smoench
comm 8000 itted
speedup sphinx build/linting with caching doctrees and pip cache
1 parent 325c6d7 commit 65f9417

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ jobs:
2929
- name: "Install Sphinx dependencies"
3030
run: sudo apt-get install python-dev build-essential
3131

32-
- name: "Install Sphinx"
33-
run: pip install --user sphinx
32+
- name: "Cache pip"
33+
uses: actions/cache@v1
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }}
37+
restore-keys: |
38+
${{ runner.os }}-pip-
3439
35-
- name: "Install custom requirements via pip"
40+
- name: "Install Sphinx + requirements via pip"
3641
run: pip install -r _build/.requirements.txt
3742

3843
- name: "Build documentation"

0 commit comments

Comments
 (0)
0