From bd32e9af7ce83f983a3f0e72059909cb07623766 Mon Sep 17 00:00:00 2001 From: srcarter3 Date: Wed, 2 Sep 2020 16:14:31 -0600 Subject: [PATCH] Update sphinx_build_deploy.yml First pass at trying to add caching for dependencies. --- .github/workflows/sphinx_build_deploy.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx_build_deploy.yml b/.github/workflows/sphinx_build_deploy.yml index b0d647b..85e0a58 100644 --- a/.github/workflows/sphinx_build_deploy.yml +++ b/.github/workflows/sphinx_build_deploy.yml @@ -18,10 +18,25 @@ jobs: with: python-version: '3.8' + - name: Install pip + run: | + python -m pip install --upgrade pip + + - name: Get pip cache dir + id: pip-cache + run : echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles{'docs/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Install dependencies run: | sudo apt install pandoc - python -m pip install --upgrade pip pip install -r docs/requirements.txt - name: Install ReadTheDocs theme