mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-04 02:50:41 +02:00
28 lines
627 B
YAML
28 lines
627 B
YAML
# 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: morgana-harbor.psi.ch/bec/python:3.8
|
|
|
|
#commands to run in the Docker container before starting each job.
|
|
before_script:
|
|
- pip install -e .[dev]
|
|
|
|
# different stages in the pipeline
|
|
stages:
|
|
- Formatter
|
|
- Test
|
|
- Deploy
|
|
|
|
formatter:
|
|
stage: Formatter
|
|
script:
|
|
- pip install black
|
|
- black --check --diff --color --line-length=100 ./
|
|
|
|
pytest:
|
|
stage: Test
|
|
script:
|
|
- pytest -v --random-order ./tests
|
|
|
|
|