39 lines
775 B
YAML
39 lines
775 B
YAML
---
|
|
when:
|
|
- event: [pull_request, tag]
|
|
- event: [push, manual]
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
steps:
|
|
- name: ansible-lint
|
|
image: ghcr.io/ansible/community-ansible-dev-tools
|
|
commands:
|
|
- sleep 10000
|
|
- pwd
|
|
- id
|
|
- echo $HOME
|
|
- echo $PATH
|
|
- which ansible-lint
|
|
- ansible-lint --help
|
|
- ansible-lint
|
|
environment:
|
|
FORCE_COLOR: "1"
|
|
ANSIBLE_LOCAL_TEMP: /tmp
|
|
|
|
- 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
|
|
- ruff check .
|
|
environment:
|
|
PY_COLORS: "1"
|