From 905719f2f137b53d2b63d347a41a59d0aef39193 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 8 Dec 2019 17:09:07 +0000 Subject: [PATCH] Add a setup helper script --- .github/workflows/ansible.yml | 2 +- .github/workflows/lint.yml | 2 +- scripts/setup.sh | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 scripts/setup.sh diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index 29a0f46..65c1b8d 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c9879d..75af32b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..cfca652 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -ex + +python -m venv env + +env/bin/pip install -r dev-requirements.txt