34 lines
725 B
YAML
34 lines
725 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
|
|
- ansible-lint
|
|
environment:
|
|
# TODO: https://github.com/woodpecker-ci/woodpecker/issues/3552
|
|
HOME: "/home/podman"
|
|
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"
|