Skip to content

Commit

Permalink
Update build-documentation.yml
Browse files Browse the repository at this point in the history
Change cacheing logic.
  • Loading branch information
jdenhof authored Aug 23, 2024
1 parent 57f2925 commit f8f218f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ jobs:
with:
python-version: '3.9.18'

- name: Cache pip dependencies
id: cache-python
- name: Cache pip packages
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('pyproject.toml', 'setup.cfg') }}
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml', '**/setup.cfg') }}
restore-keys: |
venv-${{ runner.os }}-
${{ runner.os }}-pip-
- name: Set up virtual environment
if: steps.cache-python.outputs.cache-hit != 'True'
Expand Down

0 comments on commit f8f218f

Please sign in to comment.