mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
Ci multiple python versions
This commit is contained in:
@ -14,6 +14,7 @@ include:
|
|||||||
stages:
|
stages:
|
||||||
- Formatter
|
- Formatter
|
||||||
- test
|
- test
|
||||||
|
- AdditionalTests
|
||||||
- Deploy
|
- Deploy
|
||||||
|
|
||||||
formatter:
|
formatter:
|
||||||
@ -25,9 +26,10 @@ formatter:
|
|||||||
pylint:
|
pylint:
|
||||||
stage: Formatter
|
stage: Formatter
|
||||||
needs: []
|
needs: []
|
||||||
script:
|
before_script:
|
||||||
- pip install pylint pylint-exit anybadge
|
- pip install pylint pylint-exit anybadge
|
||||||
- pip install -e .[dev]
|
- pip install -e .[dev]
|
||||||
|
script:
|
||||||
- mkdir ./pylint
|
- mkdir ./pylint
|
||||||
- pylint ./bec_widgets --output-format=text --output=./pylint/pylint.log | tee ./pylint/pylint.log || pylint-exit $?
|
- 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)
|
- 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
|
junit: report.xml
|
||||||
cobertura: coverage.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:
|
semver:
|
||||||
stage: Deploy
|
stage: Deploy
|
||||||
@ -111,7 +142,7 @@ semver:
|
|||||||
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"'
|
||||||
|
Reference in New Issue
Block a user