Skip to content

Commit

Permalink
configure pip cache
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Sep 14, 2020
1 parent 09547e7 commit 344ea06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -25,6 +25,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install
run: |
pip install tox
Expand Down

0 comments on commit 344ea06

Please sign in to comment.