replace matrix build

This commit is contained in:
Robert Kaussow 2023-12-23 23:12:04 +01:00
parent 4ad6199a24
commit e947f62558
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 25 additions and 16 deletions

View File

@ -52,11 +52,7 @@ branches:
strict: false
contexts:
- ci/woodpecker/pr/lint
- ci/woodpecker/pr/test/1
- ci/woodpecker/pr/test/2
- ci/woodpecker/pr/test/3
- ci/woodpecker/pr/test/4
- ci/woodpecker/pr/test/5
- ci/woodpecker/pr/test
- ci/woodpecker/pr/build-package
- ci/woodpecker/pr/build-container
- ci/woodpecker/pr/docs

View File

@ -5,17 +5,9 @@ when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}
matrix:
PYTHON_VERSION:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- name: pytest
image: docker.io/library/python:${PYTHON_VERSION}
variables:
- &pytest_base
group: pytest
commands:
- pip install poetry poetry-dynamic-versioning -qq
- poetry install
@ -23,3 +15,24 @@ steps:
- poetry run ${CI_REPO_NAME} --help
environment:
PY_COLORS: "1"
steps:
- name: python-312
image: docker.io/library/python:3.12
<<: *pytest_base
- name: python-311
image: docker.io/library/python:3.11
<<: *pytest_base
- name: python-310
image: docker.io/library/python:3.10
<<: *pytest_base
- name: python-39
image: docker.io/library/python:3.9
<<: *pytest_base
- name: python-38
image: docker.io/library/python:3.8
<<: *pytest_base