Update actions/setup-python action to v5 (#96) #53
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: Syntax check | |
on: | |
push: | |
jobs: | |
syntax-check: | |
name: Syntax check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install ansible | |
run: pip install -r requirements.txt | |
- name: Run ansible-lint | |
working-directory: ./deployment | |
run: ansible-lint | |
- name: Run ansible syntax-check | |
working-directory: ./deployment | |
run: ansible-playbook --syntax-check -i inventory_dev.yaml playbooks/*.yml | |
- uses: stefanzweifel/git-auto-commit-action@v4 |