xoxys.general/.woodpecker/sanity-test.yml

29 lines
749 B
YAML

---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
matrix:
ANSIBLE_VERSION:
- "devel"
- "2.16"
- "2.15"
workspace:
base: /woodpecker/src/ansible_collections/${CI_REPO_NAME/./\/}
path: src/github.com/octocat/hello-world
steps:
ansible:
image: docker.io/library/python:3.10
commands:
- pip install poetry -qq
- poetry install --all-extras --no-root
- poetry run pip install https://github.com/ansible/ansible/archive/${ANSIBLE_VERSION}.tar.gz --disable-pip-version-check
- poetry run ansible --version
- poetry run ansible-test sanity --exclude .gitsv/ --exclude .woodpecker/ --python 3.10
environment:
PY_COLORS: "1"