2023-08-24 20:14:30 +00:00
|
|
|
---
|
|
|
|
when:
|
|
|
|
- event: [pull_request, tag]
|
|
|
|
- event: [push, manual]
|
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
PYTHON_VERSION:
|
|
|
|
- docker.io/library/python:3.8
|
|
|
|
- docker.io/library/python:3.9
|
|
|
|
- docker.io/library/python:3.10
|
|
|
|
- docker.io/library/python:3.11
|
2023-10-16 12:15:57 +00:00
|
|
|
- docker.io/library/python:3.12
|
2023-08-24 20:14:30 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
pytest:
|
|
|
|
image: ${PYTHON_VERSION}
|
|
|
|
commands:
|
2023-10-16 13:42:36 +00:00
|
|
|
- git fetch --depth=2147483647
|
2023-08-24 20:14:30 +00:00
|
|
|
- pip install poetry poetry-dynamic-versioning -qq
|
|
|
|
- poetry install
|
2023-08-24 21:51:54 +00:00
|
|
|
- poetry run pytest --cov-append
|
2023-08-24 20:14:30 +00:00
|
|
|
- poetry version
|
|
|
|
- poetry run ${CI_REPO_NAME} --help
|
|
|
|
environment:
|
|
|
|
PY_COLORS: "1"
|