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"