infrastructure/.github/workflows/ansible.yml

21 lines
539 B
YAML

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
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
- name: Install dependencies
run: ./scripts/ansible/setup.sh
- name: Run linters
run: ./scripts/ansible/lint.sh