From c09af57c625ddf2a50884c42cc3e855488f8d4d0 Mon Sep 17 00:00:00 2001 From: Jordi Loyzaga Date: Sat, 27 Apr 2024 18:50:26 -0600 Subject: [PATCH] fixed ci scripts --- .drone.yml | 2 -- scripts/drone/lint.sh | 4 ++++ scripts/drone/test.sh | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1826bef..f3bce14 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,6 @@ steps: - name: unitest image: python commands: - - pip install -r requirements_test.txt - ./scripts/drone/setup.sh - ./scripts/drone/test.sh depends_on: @@ -15,7 +14,6 @@ steps: - name: lint image: python commands: - - pip install -r requirements_test.txt - ./scripts/drone/lint.sh depends_on: - clone diff --git a/scripts/drone/lint.sh b/scripts/drone/lint.sh index 5e04b12..99e59f1 100755 --- a/scripts/drone/lint.sh +++ b/scripts/drone/lint.sh @@ -1,4 +1,8 @@ +printf "\n\n|| Installing static analysis requirements ||\n\n" +pip install -r requirements_static.txt + printf "\n\n|| Starting ruff check ||\n\n" ruff check --config=./pyproject.toml + printf "\n\n|| Starting bandit check ||\n\n" bandit -r lockbox/ \ No newline at end of file diff --git a/scripts/drone/test.sh b/scripts/drone/test.sh index b36b368..36e27ae 100755 --- a/scripts/drone/test.sh +++ b/scripts/drone/test.sh @@ -1,3 +1,6 @@ +printf "\n\n|| Installing test requirements ||\n\n" +pip install -r requirements_test.txt + cd lockbox printf "\n\n|| Starting pytest run ||\n\n" pytest --cov=. --cov-report term-missing --reuse-db \ No newline at end of file