From 65f9417e5ba730375ec834b6fa0aae38fbd84fb0 Mon Sep 17 00:00:00 2001 From: smoench Date: Fri, 21 Feb 2020 17:09:59 +0100 Subject: [PATCH] speedup sphinx build/linting with caching doctrees and pip cache --- .github/workflows/ci.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7b2582b2e63..d61b084f1e5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,10 +29,15 @@ jobs: - name: "Install Sphinx dependencies" run: sudo apt-get install python-dev build-essential - - name: "Install Sphinx" - run: pip install --user sphinx + - name: "Cache pip" + uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- - - name: "Install custom requirements via pip" + - name: "Install Sphinx + requirements via pip" run: pip install -r _build/.requirements.txt - name: "Build documentation"