diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 057a9f2..8f1c684 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ # 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: # https://hub.docker.com/r/library/python/tags/ -image: $CI_DOCKER_REGISTRY/python:3.9 +image: $CI_DOCKER_REGISTRY/python:3.10 workflow: rules: @@ -87,7 +87,7 @@ pytest: script: - pip install coverage - coverage run --source=./ophyd_devices -m pytest -v --junitxml=report.xml --random-order --full-trace ./tests - - coverage report + - coverage report - coverage xml coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' artifacts: @@ -97,22 +97,16 @@ pytest: coverage_format: cobertura path: coverage.xml -tests-3.10: +tests-3.11: stage: AdditionalTests - image: $CI_DOCKER_REGISTRY/python:3.10 + image: $CI_DOCKER_REGISTRY/python:3.11 needs: ["pytest"] script: - pytest -v --random-order ./tests 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: - extends: "tests-3.10" + extends: "tests-3.11" stage: AdditionalTests image: $CI_DOCKER_REGISTRY/python:3.12 allow_failure: true @@ -146,10 +140,10 @@ semver: - export REPOSITORY_USERNAME=__token__ - export REPOSITORY_PASSWORD=$CI_PYPI_TOKEN - > - semantic-release publish -v DEBUG - -D version_variable=./setup.py:__version__ - -D hvcs=gitlab - + semantic-release publish -v DEBUG + -D version_variable=./setup.py:__version__ + -D hvcs=gitlab + allow_failure: false rules: - if: '$CI_COMMIT_REF_NAME == "master"' diff --git a/.pylintrc b/.pylintrc index 0561755..4f63d82 100644 --- a/.pylintrc +++ b/.pylintrc @@ -52,7 +52,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # 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 # user-friendly hints instead of false-positive error messages. diff --git a/setup.cfg b/setup.cfg index 29b76f3..d43162b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,7 +15,7 @@ classifiers = package_dir = = . packages = find: -python_requires = >=3.9 +python_requires = >=3.10 [options.packages.find] where = .