From b38bf30b5653fafc4f331ecd69ba25b3634e0803 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Tue, 2 Dec 2025 19:44:14 +0100 Subject: [PATCH 1/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f1d283..f4eb21d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,17 @@ stages: # List of stages for jobs, and their order of execution + - lint - build - clean +lint: + stage: lint + image: python:3.12 + script: + - pip install flake8 black pylint + - flake8 . + - black --check . + - pylint portainer.py + build-job: # This job runs in the build stage, which runs first. stage: build script: From 327ce78259346d642deb7941354f6a7c9cc94294 Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Tue, 2 Dec 2025 19:44:58 +0100 Subject: [PATCH 2/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4eb21d..a00597a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ lint: stage: lint image: python:3.12 script: - - pip install flake8 black pylint + - pip install flake8 black pylint --break-system-packages - flake8 . - black --check . - pylint portainer.py From 05aa62cbed5c37f442fa11181fdeb34302d0e21e Mon Sep 17 00:00:00 2001 From: Laci Dusa Date: Tue, 2 Dec 2025 20:00:13 +0100 Subject: [PATCH 3/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a00597a..2a7d5c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,11 @@ stages: # List of stages for jobs, and their order of execution lint: stage: lint image: python:3.12 + before_script: + - python3 -m pip install --user flake8 black pylint + - export PATH="$PATH:/home/gitlab-runner/.local/bin" + # - echo "PATH is now: $PATH" script: - - pip install flake8 black pylint --break-system-packages - flake8 . - black --check . - pylint portainer.py