Skip to content

Commit

Permalink
Cache the entire Python environment to speed up builds. (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf authored Jul 21, 2021
1 parent f2bb550 commit a5b7262
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
- name: Cache Python
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('setup.py') }}
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
${{ env.pythonLocation }}-
- name: Install Dependencies
run: |
Expand Down

0 comments on commit a5b7262

Please sign in to comment.