Upgrade `actions/setup-python` to v4 and use built-in cache

See https://github.com/actions/setup-python#caching-packages-dependencies
This commit is contained in:
Christopher C. Wells 2022-06-16 18:22:16 -07:00
parent 7d7982b077
commit 3601a0897f
1 changed files with 3 additions and 10 deletions

View File

@ -8,21 +8,14 @@ inputs:
runs:
using: 'composite'
steps:
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
id: setup-python
with:
python-version: ${{ inputs.python-version }}
- uses: actions/cache@v3
with:
path: |
~/.local/share/virtualenvs
Pipfile.lock
key: ${{ runner.os }}-python-${{ inputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
cache: 'pipenv'
- name: Install Python dependencies
shell: bash
run: |
python -m pip install --upgrade pipenv wheel
pipenv install --dev
run: pipenv install --dev
- uses: actions/setup-node@v3
with:
node-version: 16