git-batch/.woodpecker/test.yml

32 lines
684 B
YAML
Raw Normal View History

2023-08-22 19:49:57 +00:00
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
matrix:
PYTHON_VERSION:
- docker.io/library/python:3.7
- docker.io/library/python:3.8
- docker.io/library/python:3.9
- docker.io/library/python:3.10
- docker.io/library/python:3.11
- docker.io/library/python:3.12
2023-08-22 19:49:57 +00:00
steps:
fetch:
image: docker.io/library/python:3.12
2023-08-22 19:49:57 +00:00
commands:
- git fetch -tq
pytest:
image: ${PYTHON_VERSION}
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
- poetry version
2023-08-24 20:35:47 +00:00
- poetry run ${CI_REPO_NAME} --help
2023-08-22 19:49:57 +00:00
environment:
PY_COLORS: "1"