Skip to content

Lint

Lint #620

Workflow file for this run

---
name: Lint
"on":
pull_request:
push:
schedule:
- cron: "0 7 * * *"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run ansible-lint
# replace `main` with any valid ref, or tags like `v6`
uses: ansible/ansible-lint-action@v6
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Upgrade yamllint
run: |
pip install --constraint=.github/workflows/constraints.txt yamllint
- name: Lint code.
run: |
yamllint -c .yamllint.yml .