avoid matrix builds for better readability
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/unit-test Pipeline failed
ci/woodpecker/pr/sanity-test Pipeline was successful
ci/woodpecker/pr/build-package unknown status
ci/woodpecker/pr/docs unknown status

This commit is contained in:
Robert Kaussow 2023-12-13 09:31:35 +01:00
parent 36394d1873
commit 1d4501e306
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 52 additions and 25 deletions

View File

@ -45,6 +45,5 @@ steps:
- event: [tag]
depends_on:
- lint
- unit-test
- sanity-test

View File

@ -5,24 +5,40 @@ when:
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:
variables:
- &ansible_base
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 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
- &ansible_env
PY_COLORS: "1"
workspace:
base: /woodpecker/src
path: ansible_collections/${CI_REPO_NAME/./\/}
steps:
ansible-devel:
<<: *ansible_base
environment:
PY_COLORS: "1"
ANSIBLE_VERSION: "devel"
<<: *ansible_env
ansible-216:
<<: *ansible_base
environment:
ANSIBLE_VERSION: "stable-2.16"
<<: *ansible_env
ansible-215:
<<: *ansible_base
environment:
ANSIBLE_VERSION: "stable-2.15"
<<: *ansible_env
depends_on:
- lint

View File

@ -5,16 +5,8 @@ when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
matrix:
PYTHON_VERSION:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
pytest:
image: docker.io/library/python:${PYTHON_VERSION}
variables:
- &pytest_base
commands:
- git fetch --depth=2147483647
- pip install poetry -qq
@ -22,3 +14,23 @@ steps:
- poetry run pytest
environment:
PY_COLORS: "1"
steps:
pyton-312:
image: docker.io/library/python:python:3.12
<<: *pytest_base
pyton-311:
image: docker.io/library/python:python:3.11
<<: *pytest_base
pyton-310:
image: docker.io/library/python:python:3.10
<<: *pytest_base
pyton-39:
image: docker.io/library/python:python:3.9
<<: *pytest_base
depends_on:
- lint