diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20ccbb6f..29637296 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ include: stages: - Formatter - test + - AdditionalTests - Deploy formatter: @@ -25,9 +26,10 @@ formatter: pylint: stage: Formatter needs: [] - script: + before_script: - pip install pylint pylint-exit anybadge - pip install -e .[dev] + script: - mkdir ./pylint - pylint ./bec_widgets --output-format=text --output=./pylint/pylint.log | tee ./pylint/pylint.log || pylint-exit $? - PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log) @@ -87,6 +89,35 @@ tests: junit: report.xml cobertura: coverage.xml +#tests-3.9-pyqt5: #todo enable when we decide what qt distributions we want to support +# extends: "tests" +# stage: AdditionalTests +# image: $CI_DOCKER_REGISTRY/python:3.9 +# script: +# - apt-get update +# - apt-get install -y libgl1-mesa-glx libegl1-mesa x11-utils libxkbcommon-x11-0 libdbus-1-3 +# - pip install .[dev,pyqt5] +# - pytest -v --random-order ./tests + +tests-3.10: + extends: "tests" + stage: AdditionalTests + image: $CI_DOCKER_REGISTRY/python:3.10 + allow_failure: true + + +tests-3.11: + extends: "tests" + stage: AdditionalTests + image: $CI_DOCKER_REGISTRY/python:3.11 + allow_failure: true + +tests-3.12: + extends: "tests" + stage: AdditionalTests + image: $CI_DOCKER_REGISTRY/python:3.12 + allow_failure: true + semver: stage: Deploy @@ -111,7 +142,7 @@ semver: semantic-release publish -v DEBUG -D version_variable=./setup.py:__version__ -D hvcs=gitlab - + allow_failure: false rules: - if: '$CI_COMMIT_REF_NAME == "master"'