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:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v4
|
||||||
id: setup-python
|
id: setup-python
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
- uses: actions/cache@v3
|
cache: 'pipenv'
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.local/share/virtualenvs
|
|
||||||
Pipfile.lock
|
|
||||||
key: ${{ runner.os }}-python-${{ inputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: pipenv install --dev
|
||||||
python -m pip install --upgrade pipenv wheel
|
|
||||||
pipenv install --dev
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
Loading…
Reference in New Issue