From d4d089eb6909d21dba2e9c67398018cffe82669c Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Tue, 13 Aug 2024 19:11:18 +0200 Subject: [PATCH] ci(gitlab-ci): create 'codestyle' and 'test' job for 'gcil' usage Signed-off-by: Adrian DC --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..3ef86402e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +stages: + - prepare + - test + +codestyle: + stage: prepare + image: python:3.12 + variables: + POETRY_VIRTUALENVS_CREATE: false + before_script: + # Install dependencies + - pip install poetry + - poetry install + script: + # Format sources + - ./scripts/format + +tests: + stage: test + image: python:3.12 + variables: + POETRY_VIRTUALENVS_CREATE: false + before_script: + # Install dependencies + - pip install poetry + - poetry install + script: + # Format sources + - ./scripts/format + # Run tests + - ./scripts/test