cd: drop python/3.9

This commit is contained in:
2024-02-27 15:58:43 +01:00
committed by wakonig_k
parent bc1171c199
commit 345a95dbe7
3 changed files with 11 additions and 17 deletions

View File

@ -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"'

View File

@ -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.

View File

@ -15,7 +15,7 @@ classifiers =
package_dir = package_dir =
= . = .
packages = find: packages = find:
python_requires = >=3.9 python_requires = >=3.10
[options.packages.find] [options.packages.find]
where = . where = .