avoid matrix builds for better readability
This commit is contained in:
parent
36394d1873
commit
1d4501e306
@ -45,6 +45,5 @@ steps:
|
|||||||
- event: [tag]
|
- event: [tag]
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
|
||||||
- unit-test
|
- unit-test
|
||||||
- sanity-test
|
- sanity-test
|
||||||
|
@ -5,24 +5,40 @@ when:
|
|||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
matrix:
|
variables:
|
||||||
ANSIBLE_VERSION:
|
- &ansible_base
|
||||||
- "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
|
image: docker.io/library/python:3.10
|
||||||
commands:
|
commands:
|
||||||
- pip install poetry -qq
|
- pip install poetry -qq
|
||||||
- poetry install --all-extras --no-root
|
- 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 --version
|
||||||
- poetry run ansible-test sanity --exclude .gitsv/ --exclude .woodpecker/ --python 3.10
|
- 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:
|
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
|
||||||
|
@ -5,16 +5,8 @@ when:
|
|||||||
branch:
|
branch:
|
||||||
- ${CI_REPO_DEFAULT_BRANCH}
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
matrix:
|
variables:
|
||||||
PYTHON_VERSION:
|
- &pytest_base
|
||||||
- "3.9"
|
|
||||||
- "3.10"
|
|
||||||
- "3.11"
|
|
||||||
- "3.12"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
pytest:
|
|
||||||
image: docker.io/library/python:${PYTHON_VERSION}
|
|
||||||
commands:
|
commands:
|
||||||
- git fetch --depth=2147483647
|
- git fetch --depth=2147483647
|
||||||
- pip install poetry -qq
|
- pip install poetry -qq
|
||||||
@ -22,3 +14,23 @@ steps:
|
|||||||
- poetry run pytest
|
- poetry run pytest
|
||||||
environment:
|
environment:
|
||||||
PY_COLORS: "1"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user