2024-02-18 19:45:29 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2024-08-19 14:06:21 +00:00
|
|
|
- name: ansible-lint
|
|
|
|
image: quay.io/thegeeklab/ansible-dev-tools:1
|
2024-02-18 19:45:29 +00:00
|
|
|
commands:
|
2024-08-19 14:06:21 +00:00
|
|
|
- ansible-lint
|
2024-02-18 19:45:29 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "1"
|
|
|
|
|
|
|
|
- name: python-format
|
|
|
|
image: docker.io/python:3.12
|
|
|
|
commands:
|
|
|
|
- pip install -qq ruff
|
|
|
|
- ruff format --check --diff .
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|
|
|
|
|
|
|
|
- name: python-lint
|
|
|
|
image: docker.io/python:3.12
|
|
|
|
commands:
|
|
|
|
- pip install -qq ruff
|
2024-08-18 11:44:06 +00:00
|
|
|
- ruff check .
|
2024-02-18 19:45:29 +00:00
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|