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