docker-autotag/.woodpecker/test.yml

28 lines
521 B
YAML
Raw Normal View History

2023-08-24 23:24:38 +02:00
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
matrix:
PYTHON_VERSION:
2023-11-04 16:19:02 +01:00
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
2023-08-24 23:24:38 +02:00
steps:
pytest:
2023-11-04 16:19:02 +01:00
image: docker.io/library/python:${PYTHON_VERSION}
2023-08-24 23:24:38 +02:00
commands:
- git fetch --depth=2147483647
2023-08-24 23:24:38 +02:00
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry version
- poetry run ${CI_REPO_NAME} --help
environment:
PY_COLORS: "1"