From 5736389a4a1457ebd08599b1766c3ecd8461ada4 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 22 Apr 2024 18:41:51 -0400 Subject: [PATCH] ci: add check-style job to the test stage --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c788b6d7..da1b60cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,19 @@ build-openapi-scheme: paths: - $OPENAPI_JSON +check-style: + stage: test + image: python:3.11-slim + before_script: + # we do this, because YAML anchors are not supported when executing locally + - python3 -m pip install --upgrade pip + - python3 -m pip install poetry + - poetry install --no-root --only=dev + script: + - poetry run flake8 program steering + - poetry run isort program steering + - poetry run black program steering + run_test_cases: stage: test image: python:3.11-slim -- GitLab