2024-02-18 19:39:59 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2024-08-18 14:05:11 +00:00
|
|
|
- name: ansible-lint
|
|
|
|
image: ghcr.io/ansible/community-ansible-dev-tools
|
2024-02-18 19:39:59 +00:00
|
|
|
commands:
|
2024-08-18 18:25:42 +00:00
|
|
|
- sleep 10000
|
2024-08-18 14:43:40 +00:00
|
|
|
- pwd
|
|
|
|
- id
|
2024-08-18 14:50:18 +00:00
|
|
|
- echo $HOME
|
2024-08-18 14:43:40 +00:00
|
|
|
- echo $PATH
|
|
|
|
- which ansible-lint
|
|
|
|
- ansible-lint --help
|
2024-08-18 14:05:11 +00:00
|
|
|
- ansible-lint
|
2024-02-18 19:39:59 +00:00
|
|
|
environment:
|
|
|
|
FORCE_COLOR: "1"
|
2024-08-18 14:29:30 +00:00
|
|
|
ANSIBLE_LOCAL_TEMP: /tmp
|
2024-02-18 19:39:59 +00:00
|
|
|
|
|
|
|
- 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:43:41 +00:00
|
|
|
- ruff check .
|
2024-02-18 19:39:59 +00:00
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|