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. #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