Update setup-python and use its builtin cache feature
@@ -22,16 +22,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: actions/setup-python@v2
+ - uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
+ cache: pip
+ cache-dependency-path: requirements/*.txt
- - uses: actions/cache@v2
- with:
- path: ~/.cache/pip
- key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
- restore-keys: |
- ${{ runner.os }}-pip-
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv wheel
