Add a setup helper script

This commit is contained in:
Jake Howard 2019-12-08 17:09:07 +00:00 committed by Jake Howard
parent cd3686257a
commit 905719f2f1
3 changed files with 9 additions and 2 deletions

View file

@ -12,6 +12,6 @@ jobs:
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r dev-requirements.txt
run: ./scripts/setup.sh
- name: Run linters
run: ./scripts/ansible-lint.sh

View file

@ -12,6 +12,6 @@ jobs:
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r dev-requirements.txt
run: ./scripts/setup.sh
- name: Run linters
run: ./scripts/lint.sh

7
scripts/setup.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -ex
python -m venv env
env/bin/pip install -r dev-requirements.txt