Skip to content
Snippets Groups Projects
Commit de5c9725 authored by Moul's avatar Moul
Browse files

CI: Switch default Python version to 3.12 (#448)

Move coverage and integration testing to v3.12 job
Remove allow_failure
Switch image creation to Py3.12
parent fa03d43e
No related branches found
No related tags found
1 merge request!250CI: Switch default Python version to 3.12 (#448)
Pipeline #33484 passed
......@@ -6,7 +6,7 @@ stages:
variables:
DOCKER_IMAGE: "registry.duniter.org/docker/python3/poetry"
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
......@@ -110,7 +110,12 @@ unit_tests:3.10:
variables:
PYTHON_VERSION: "3.10"
tests:3.11:cov:
unit_tests:3.11:
extends: .tests
variables:
PYTHON_VERSION: "3.11"
tests:3.12:cov:
extends: .tests
coverage: '/(?i)total.*\s+(\d+%)/'
script:
......@@ -126,12 +131,6 @@ tests:3.11:cov:
coverage_format: cobertura
path: coverage.xml
unit_tests:3.12:
extends: .tests
variables:
PYTHON_VERSION: "3.12"
allow_failure: true
.image:
stage: package
tags: [docker]
......@@ -139,7 +138,7 @@ unit_tests:3.12:
services:
- docker:dind
variables:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE/$CHANNEL/$ENV:$CI_COMMIT_SHORT_SHA" -f image/$ENV --build-arg PYTHON_VERS=$PYTHON_VERSION .
......@@ -207,7 +206,7 @@ pypi:
pages:
extends: .changes
needs: ["tests:3.11:cov"]
needs: ["tests:3.12:cov"]
rules:
- if: $CI_COMMIT_BRANCH == "main"
stage: coverage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment