From fc9646934ee79f378d794fc22dad656bae9c1ff4 Mon Sep 17 00:00:00 2001 From: bcchang Date: Mon, 19 Feb 2024 16:56:29 -0600 Subject: [PATCH] Fix typo in docs workflow and add caching --- .github/workflows/docs.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 68d7c0f..7e83b8b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,11 +30,22 @@ jobs: with: python-version: "3.10" + - name: Cache pip + uses: actions/cache@v2 + with: + # This path is specific to Ubuntu + path: ~/.cache/pip + # Look to see if there is a cache hit for the corresponding requirements file + key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + ${{ runner.os }}- + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install -r requirements/docs.txt + pip install -r requirements/docs.txt - name: Build HTML run: | cd docs/