xoxys.auditd/.woodpecker/lint.yaml
Robert Kaussow 09b43e8693
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/docs unknown status
debug
2024-08-18 20:52:33 +02:00

33 lines
711 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:
# TODO: https://github.com/woodpecker-ci/woodpecker/issues/3552
- export HOME=/home/podman
- ansible-lint
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
- ruff check .
environment:
PY_COLORS: "1"