-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
22 lines (22 loc) · 764 Bytes
/
action.yml
File metadata and controls
22 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Install Python dependencies
description: Install dependencies from a requirements file into a virtualenv.
inputs:
requirements-file:
default: "requirements/development.txt"
description: Requirements file containing a list of Python packages.
required: False
virtualenv-location:
default: "~/venv"
description: Folder where the virtualenv will be located.
required: False
runs:
using: composite
steps:
- name: Create Python virtualenv
run: |
mkdir -p ${{ inputs.virtualenv-location }}
python3 -m venv ${{ inputs.virtualenv-location }};
shell: bash
- name: Install requirements
run: ${{ inputs.virtualenv-location }}/bin/pip install -r ${{ inputs.requirements-file }}
shell: bash