2022-06-03 04:34:04 +00:00
|
|
|
name: Setup
|
|
|
|
description: Set up Baby Buddy environment and dependencies.
|
|
|
|
inputs:
|
|
|
|
python-version:
|
|
|
|
description: 'What Python version to use.'
|
|
|
|
required: false
|
|
|
|
default: '3.x'
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2022-06-17 01:32:34 +00:00
|
|
|
- name: Install Pipenv
|
|
|
|
shell: bash
|
|
|
|
run: pipx install pipenv
|
2022-06-17 01:22:16 +00:00
|
|
|
- uses: actions/setup-python@v4
|
2022-06-03 04:34:04 +00:00
|
|
|
id: setup-python
|
|
|
|
with:
|
|
|
|
python-version: ${{ inputs.python-version }}
|
2022-06-17 01:22:16 +00:00
|
|
|
cache: 'pipenv'
|
2022-06-17 01:24:58 +00:00
|
|
|
cache-dependency-path: 'requirements.txt'
|
2022-06-03 04:34:04 +00:00
|
|
|
- name: Install Python dependencies
|
|
|
|
shell: bash
|
2022-06-17 01:22:16 +00:00
|
|
|
run: pipenv install --dev
|
2022-06-03 04:34:04 +00:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|