-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,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 ~/venv | ||
python3.7 -m venv ~/venv; | ||
mkdir -p ${{ inputs.virtualenv-location }} | ||
python3.7 -m venv ${{ inputs.virtualenv-location }}; | ||
shell: bash | ||
- name: Install requirements | ||
run: ~/venv/bin/pip install -r requirements/development.txt | ||
run: ${{ inputs.virtualenv-location }}/bin/pip install -r ${{ inputs.requirements-file }} | ||
shell: bash |