Add GitHub workflows for linting

This commit is contained in:
Jake Howard
2019-12-08 12:07:57 +00:00
committed by Jake Howard
parent ce54cf1f4c
commit 1b96d96938
5 changed files with 49 additions and 5 deletions

17
.github/workflows/ansible.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Ansible
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r dev-requirements.txt
- name: Run linters
run: ./scripts/ansible-lint.sh

17
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Lint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r dev-requirements.txt
- name: Run linters
run: ./scripts/lint.sh