Add a setup helper script
This commit is contained in:
parent
cd3686257a
commit
905719f2f1
3 changed files with 9 additions and 2 deletions
2
.github/workflows/ansible.yml
vendored
2
.github/workflows/ansible.yml
vendored
|
@ -12,6 +12,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r dev-requirements.txt
|
run: ./scripts/setup.sh
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: ./scripts/ansible-lint.sh
|
run: ./scripts/ansible-lint.sh
|
||||||
|
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -12,6 +12,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r dev-requirements.txt
|
run: ./scripts/setup.sh
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: ./scripts/lint.sh
|
run: ./scripts/lint.sh
|
||||||
|
|
7
scripts/setup.sh
Executable file
7
scripts/setup.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
python -m venv env
|
||||||
|
|
||||||
|
env/bin/pip install -r dev-requirements.txt
|
Loading…
Reference in a new issue