mirror of https://github.com/snachodog/mybuddy.git
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:
parent
7d7982b077
commit
3601a0897f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue