Skip to content

Commit e6f5502

Browse files
committed
cache pip with setup-python action
1 parent 312d01a commit e6f5502

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,13 @@ jobs:
3939
- uses: actions/setup-python@v2
4040
with:
4141
python-version: ${{ matrix.python }}
42+
cache: 'pip'
43+
cache-dependency-path: 'requirements/*.txt'
4244
- name: update pip
4345
run: |
4446
pip install -U wheel
4547
pip install -U setuptools
4648
python -m pip install -U pip
47-
- name: get pip cache dir
48-
id: pip-cache
49-
run: echo "::set-output name=dir::$(pip cache dir)"
50-
- name: cache pip
51-
uses: actions/cache@v2
52-
with:
53-
path: ${{ steps.pip-cache.outputs.dir }}
54-
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}
5549
- name: cache mypy
5650
uses: actions/cache@v2
5751
with:

0 commit comments

Comments
 (0)