2023-08-25 00:02:01 +02:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
steps:
|
2023-12-23 23:24:56 +01:00
|
|
|
- name: check-format
|
2023-10-16 14:15:21 +02:00
|
|
|
image: docker.io/library/python:3.12
|
2023-08-25 00:02:01 +02:00
|
|
|
commands:
|
|
|
|
- pip install poetry poetry-dynamic-versioning -qq
|
2024-01-10 08:32:57 +01:00
|
|
|
- poetry install -E ansible-core
|
2023-11-10 14:50:50 +01:00
|
|
|
- poetry run ruff format --check --diff ./${CI_REPO_NAME//-/}
|
2023-08-25 00:02:01 +02:00
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|
|
|
|
|
2023-12-23 23:24:56 +01:00
|
|
|
- name: check-coding
|
2023-10-16 14:15:21 +02:00
|
|
|
image: docker.io/library/python:3.12
|
2023-08-25 00:02:01 +02:00
|
|
|
commands:
|
|
|
|
- pip install poetry poetry-dynamic-versioning -qq
|
2024-01-10 08:32:57 +01:00
|
|
|
- poetry install -E ansible-core
|
2024-03-12 20:52:52 +01:00
|
|
|
- poetry run ruff check ./${CI_REPO_NAME//-/}
|
2023-08-25 00:02:01 +02:00
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|
2024-06-02 09:00:07 +02:00
|
|
|
|
|
|
|
- name: check-jinja
|
|
|
|
image: docker.io/library/python:3.12
|
|
|
|
commands:
|
|
|
|
- pip install poetry poetry-dynamic-versioning -qq
|
|
|
|
- poetry install -E ansible-core
|
|
|
|
- poetry run j2lint ansibledoctor/templates/ -i jinja-statements-indentation jinja-statements-delimiter
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|