Skip to content
Snippets Groups Projects
Commit 7286d8c7 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 f7490aa7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -135,7 +135,12 @@ 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:
......@@ -158,7 +163,7 @@ tests:3.11:cov:
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 .
......@@ -226,7 +231,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