mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-07-13 12:11:51 +02:00
ci: cleanup
This commit is contained in:
@ -5,20 +5,23 @@ image: morgana-harbor.psi.ch/bec/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:
|
||||||
- pip install -r ./requirements.txt
|
- pip install -e .[dev]
|
||||||
- pip install -e .
|
|
||||||
# different stages in the pipeline
|
# different stages in the pipeline
|
||||||
stages:
|
stages:
|
||||||
- Formatter
|
- Formatter
|
||||||
- Test
|
- Test
|
||||||
|
- Deploy
|
||||||
|
|
||||||
formatter:
|
formatter:
|
||||||
stage: Formatter
|
stage: Formatter
|
||||||
script:
|
script:
|
||||||
- pip install black
|
- pip install black
|
||||||
- black --check --diff --color --line-length=100 ./
|
- black --check --diff --color --line-length=100 ./
|
||||||
|
|
||||||
pytest:
|
pytest:
|
||||||
stage: Test
|
stage: Test
|
||||||
script:
|
script:
|
||||||
- git clone https://oauth2:$CI_BEC_KEY@gitlab.psi.ch/bec/bec.git
|
- pytest -v --random-order ./tests
|
||||||
- pip install -e ./bec/bec_lib
|
|
||||||
- pytest -v ./tests
|
|
||||||
|
Reference in New Issue
Block a user