ci: cleanup

This commit is contained in:
2023-06-28 13:02:22 +02:00
parent 412a0e4480
commit 56e5d5d61e

View File

@ -5,20 +5,23 @@ image: morgana-harbor.psi.ch/bec/python:3.8
#commands to run in the Docker container before starting each job.
before_script:
- pip install -r ./requirements.txt
- pip install -e .
- 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:
- git clone https://oauth2:$CI_BEC_KEY@gitlab.psi.ch/bec/bec.git
- pip install -e ./bec/bec_lib
- pytest -v ./tests
- pytest -v --random-order ./tests