Skip to content

Commit

Permalink
Fix typo in docs workflow and add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
BC-Chang committed Feb 19, 2024
1 parent b419cba commit fc96469
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit fc96469

Please sign in to comment.