From e134f89280c5b5ae6230fb63e78f4f72950c0f60 Mon Sep 17 00:00:00 2001 From: drorganvidez Date: Mon, 25 Mar 2024 17:10:58 +0100 Subject: [PATCH] fix: Fix test CI --- .github/workflows/tests.yml | 10 ++++++++-- scripts/check_env_and_install.sh | 8 -------- 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 scripts/check_env_and_install.sh diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 31678f87..ffd99eb5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,8 +30,14 @@ jobs: with: python-version: '3.11' + - name: Prepare environment + run: | + sed -i '/rosemary @ file:\/\/\/app/d' requirements.txt + - name: Install dependencies - run: bash ./scripts/check_env_and_install.sh + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt - name: Run Tests env: @@ -42,4 +48,4 @@ jobs: MARIADB_USER: uvlhub_user MARIADB_PASSWORD: uvlhub_password run: | - rosemary test + pytest app/blueprints/ diff --git a/scripts/check_env_and_install.sh b/scripts/check_env_and_install.sh deleted file mode 100644 index e4f9f8e2..00000000 --- a/scripts/check_env_and_install.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -if [ -n "$GITHUB_ACTIONS" ]; then - sed -i 's|file:///app|file:///|' requirements.txt -fi - -python -m pip install --upgrade pip -pip install -r requirements.txt