mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-10 02:38:04 +02:00
cd: drop python/3.9
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# This file is a template, and might need editing before it works on your project.
|
# This file is a template, and might need editing before it works on your project.
|
||||||
# Official language image. Look for the different tagged releases at:
|
# Official language image. Look for the different tagged releases at:
|
||||||
# https://hub.docker.com/r/library/python/tags/
|
# https://hub.docker.com/r/library/python/tags/
|
||||||
image: $CI_DOCKER_REGISTRY/python:3.9
|
image: $CI_DOCKER_REGISTRY/python:3.10
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
@ -87,7 +87,7 @@ pytest:
|
|||||||
script:
|
script:
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
- coverage run --source=./ophyd_devices -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests
|
- coverage run --source=./ophyd_devices -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests
|
||||||
- coverage report
|
- coverage report
|
||||||
- coverage xml
|
- coverage xml
|
||||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -97,22 +97,16 @@ pytest:
|
|||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
|
|
||||||
tests-3.10:
|
tests-3.11:
|
||||||
stage: AdditionalTests
|
stage: AdditionalTests
|
||||||
image: $CI_DOCKER_REGISTRY/python:3.10
|
image: $CI_DOCKER_REGISTRY/python:3.11
|
||||||
needs: ["pytest"]
|
needs: ["pytest"]
|
||||||
script:
|
script:
|
||||||
- pytest -v --random-order ./tests
|
- pytest -v --random-order ./tests
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
tests-3.11:
|
|
||||||
extends: "tests-3.10"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DOCKER_REGISTRY/python:3.11
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.12:
|
tests-3.12:
|
||||||
extends: "tests-3.10"
|
extends: "tests-3.11"
|
||||||
stage: AdditionalTests
|
stage: AdditionalTests
|
||||||
image: $CI_DOCKER_REGISTRY/python:3.12
|
image: $CI_DOCKER_REGISTRY/python:3.12
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
@ -146,10 +140,10 @@ semver:
|
|||||||
- export REPOSITORY_USERNAME=__token__
|
- export REPOSITORY_USERNAME=__token__
|
||||||
- export REPOSITORY_PASSWORD=$CI_PYPI_TOKEN
|
- export REPOSITORY_PASSWORD=$CI_PYPI_TOKEN
|
||||||
- >
|
- >
|
||||||
semantic-release publish -v DEBUG
|
semantic-release publish -v DEBUG
|
||||||
-D version_variable=./setup.py:__version__
|
-D version_variable=./setup.py:__version__
|
||||||
-D hvcs=gitlab
|
-D hvcs=gitlab
|
||||||
|
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_REF_NAME == "master"'
|
- if: '$CI_COMMIT_REF_NAME == "master"'
|
||||||
|
@ -52,7 +52,7 @@ persistent=yes
|
|||||||
|
|
||||||
# Minimum Python version to use for version dependent checks. Will default to
|
# Minimum Python version to use for version dependent checks. Will default to
|
||||||
# the version used to run pylint.
|
# the version used to run pylint.
|
||||||
py-version=3.9
|
py-version=3.10
|
||||||
|
|
||||||
# When enabled, pylint would attempt to guess common misconfiguration and emit
|
# When enabled, pylint would attempt to guess common misconfiguration and emit
|
||||||
# user-friendly hints instead of false-positive error messages.
|
# user-friendly hints instead of false-positive error messages.
|
||||||
|
Reference in New Issue
Block a user