From 273a01fa3579d09e42437dce707a368e97d4c8c4 Mon Sep 17 00:00:00 2001 From: nguyed99 <nguyed99@zedat.fu-berlin.de> Date: Fri, 19 Jan 2024 21:45:43 +0100 Subject: [PATCH] Update pipeline --- .gitlab-ci.yml | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index edc9aa9..c51706d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,36 +1,31 @@ -stages: -- build -- test-jobs -- test-tasks - image: python:3.11-bullseye variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" cache: - key: "${CI_JOB_NAME}" - paths: - .cache/pip - - .venv -build-env: - stage: build + +before_script: + - pip install poetry + - poetry --version + - cd build/ + - poetry install -vv + - cd .. + +format: script: - - pip install poetry - - poetry --version - - cd build/ - - poetry config virtualenvs.in-project true - - poetry install -vv - - cd .. - + - poetry run pre-commit install + - poetry run yapf -i -r -p . + - poetry run ruff . + - poetry run ruff . --fix + test-jobs: - stage: test-jobs script: - poetry run pytest jobs/tests/ test-tasks: - stage: test-tasks script: - poetry run pytest tasks/tests/ \ No newline at end of file -- GitLab