Added a requirements file, and updated README. #1174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ansible Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt') }} | |
- name: Install required dependencies | |
run: | | |
pip install ansible-lint ansible | |
pip install -r requirements.txt | |
- name: Run ansible Lint | |
run: | | |
ansible-lint --exclude .github/ -v | |
env: | |
ANSIBLE_INVENTORY_UNPARSED_FAILED: false |