ci: move ci to awi-utils
This commit is contained in:
@@ -1,67 +1,6 @@
|
|||||||
# 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_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.10
|
|
||||||
|
|
||||||
workflow:
|
|
||||||
rules:
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "web"
|
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
||||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
|
||||||
when: never
|
|
||||||
- if: $CI_COMMIT_BRANCH
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
- project: bec/awi_utils
|
||||||
|
file: /templates/plugin-repo-template.yml
|
||||||
#commands to run in the Docker container before starting each job.
|
inputs:
|
||||||
before_script:
|
name: "debye"
|
||||||
- pip install -e .[dev]
|
target: "debye_bec"
|
||||||
|
|
||||||
# different stages in the pipeline
|
|
||||||
stages:
|
|
||||||
- Formatter
|
|
||||||
- test
|
|
||||||
- AdditionalTests
|
|
||||||
- Deploy
|
|
||||||
|
|
||||||
secret_detection:
|
|
||||||
before_script:
|
|
||||||
- ''
|
|
||||||
|
|
||||||
formatter:
|
|
||||||
stage: Formatter
|
|
||||||
script:
|
|
||||||
- pip install black
|
|
||||||
- black --check --diff --color --line-length=100 ./
|
|
||||||
|
|
||||||
pytest:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- pytest -v --random-order ./tests
|
|
||||||
|
|
||||||
tests-3.11:
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.11
|
|
||||||
needs: ["formatter"]
|
|
||||||
script:
|
|
||||||
- pytest -v --random-order ./tests
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tests-3.12:
|
|
||||||
extends: "tests-3.11"
|
|
||||||
stage: AdditionalTests
|
|
||||||
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.12
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
config_test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- ophyd_test --config ./debye_bec/device_configs/ --output ./config_tests
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- ./config_tests
|
|
||||||
when: on_failure
|
|
||||||
expire_in: "30 days"
|
|
||||||
allow_failure: false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user