Merge branch 'repo_cleanup' into 'master'
ci: added additional tests for other python versions See merge request bec/ophyd_devices!29
This commit is contained in:
commit
f4d39e7328
@ -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: morgana-harbor.psi.ch/bec/python:3.8
|
image: $CI_DOCKER_REGISTRY/python:3.8
|
||||||
|
|
||||||
#commands to run in the Docker container before starting each job.
|
#commands to run in the Docker container before starting each job.
|
||||||
before_script:
|
before_script:
|
||||||
@ -11,6 +11,7 @@ before_script:
|
|||||||
stages:
|
stages:
|
||||||
- Formatter
|
- Formatter
|
||||||
- Test
|
- Test
|
||||||
|
- AdditionalTests
|
||||||
- Deploy
|
- Deploy
|
||||||
|
|
||||||
formatter:
|
formatter:
|
||||||
@ -24,9 +25,29 @@ pytest:
|
|||||||
script:
|
script:
|
||||||
- pytest -v --random-order ./tests
|
- pytest -v --random-order ./tests
|
||||||
|
|
||||||
|
tests-3.9:
|
||||||
|
stage: AdditionalTests
|
||||||
|
image: $CI_DOCKER_REGISTRY/python:3.9
|
||||||
|
needs: ["pytest"]
|
||||||
|
script:
|
||||||
|
- pytest -v --random-order ./tests
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
tests-3.10:
|
||||||
|
extends: "tests-3.9"
|
||||||
|
stage: AdditionalTests
|
||||||
|
image: $CI_DOCKER_REGISTRY/python:3.10
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
|
tests-3.11:
|
||||||
|
extends: "tests-3.9"
|
||||||
|
stage: AdditionalTests
|
||||||
|
image: $CI_DOCKER_REGISTRY/python:3.11
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
semver:
|
semver:
|
||||||
stage: Deploy
|
stage: Deploy
|
||||||
needs: ["tests"]
|
needs: ["pytest"]
|
||||||
script:
|
script:
|
||||||
- git config --global user.name "ci_update_bot"
|
- git config --global user.name "ci_update_bot"
|
||||||
- git config --global user.email "ci_update_bot@bec.ch"
|
- git config --global user.email "ci_update_bot@bec.ch"
|
||||||
@ -50,4 +71,4 @@ semver:
|
|||||||
|
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_REF_NAME == "master"'
|
- if: '$CI_COMMIT_REF_NAME == "master"'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user