---
include: 'templates/template.yml'

yamllint:
  extends: .retry
  interruptible: true
  image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
  tags:
    - lint
    - yamllint
  stage: lint
  rules:
    - if: "$TRIGGERED_FROM_OTHER_PROJECT"
      when: never
    - changes:
        - "**/*.yaml"
        - "*.yaml"
        - "**/*.yml"
        - "*.yml"
  script:
    - tox -e yamllint
