2023-08-24 22:07:23 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
PYTHON_VERSION:
|
|
|
|
- docker.io/library/python:3.9
|
|
|
|
- docker.io/library/python:3.10
|
|
|
|
- docker.io/library/python:3.11
|
2023-10-16 12:15:26 +00:00
|
|
|
- docker.io/library/python:3.12
|
2023-08-24 22:07:23 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
fetch:
|
2023-10-16 12:15:26 +00:00
|
|
|
image: docker.io/library/python:3.12
|
2023-08-24 22:07:23 +00:00
|
|
|
commands:
|
|
|
|
- git fetch -tq
|
|
|
|
|
|
|
|
pytest:
|
|
|
|
image: ${PYTHON_VERSION}
|
|
|
|
commands:
|
|
|
|
- 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"
|