Skip to content

Commit

Permalink
Merge #1 (add custom inputs).
Browse files Browse the repository at this point in the history
martey committed Jun 25, 2021
2 parents 3598511 + e933106 commit 6d83f0c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions action.yml
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

0 comments on commit 6d83f0c

Please sign in to comment.