2023-08-24 22:07:23 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
PYTHON_VERSION:
|
2023-11-04 15:24:24 +00:00
|
|
|
- "3.9"
|
|
|
|
- "3.10"
|
|
|
|
- "3.11"
|
|
|
|
- "3.12"
|
2023-08-24 22:07:23 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
pytest:
|
2023-11-04 15:24:24 +00:00
|
|
|
image: docker.io/library/python:${PYTHON_VERSION}
|
2023-08-24 22:07:23 +00:00
|
|
|
commands:
|
2023-10-16 13:43:00 +00:00
|
|
|
- git fetch --depth=2147483647
|
2023-08-24 22:07:23 +00:00
|
|
|
- pip install poetry poetry-dynamic-versioning -qq
|
|
|
|
- poetry install -E ansible-core
|
|
|
|
- poetry run pytest --cov-append
|
|
|
|
- poetry version
|
|
|
|
- poetry run ${CI_REPO_NAME} --help
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|