Use embedded postgres instead of postgres server for eval workflow

This commit is contained in:
Debanjum
2025-04-03 22:30:53 +05:30
parent abfdf7b1fb
commit 0dcb2544d7
2 changed files with 3 additions and 3 deletions

View File

@@ -51,4 +51,4 @@ body:
description: "Provide a link to the first message of feature request's discussion on Discord or Github.\n description: "Provide a link to the first message of feature request's discussion on Discord or Github.\n
This will help to keep history of why this feature request exists." This will help to keep history of why this feature request exists."
validations: validations:
required: false required: false

View File

@@ -98,9 +98,8 @@ jobs:
env: env:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
run: | run: |
# install postgres and other dependencies # install dependencies
sudo apt update && sudo apt install -y git python3-pip libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6 sudo apt update && sudo apt install -y git python3-pip libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6
sudo apt install -y postgresql postgresql-client && sudo apt install -y postgresql-server-dev-16
# upgrade pip # upgrade pip
python -m ensurepip --upgrade && python -m pip install --upgrade pip python -m ensurepip --upgrade && python -m pip install --upgrade pip
# install terrarium for code sandbox # install terrarium for code sandbox
@@ -137,6 +136,7 @@ jobs:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres POSTGRES_DB: postgres
USE_EMBEDDED_DB: "true"
KHOJ_TELEMETRY_DISABLE: "True" # To disable telemetry for tests KHOJ_TELEMETRY_DISABLE: "True" # To disable telemetry for tests
run: | run: |
# Start Khoj server in background # Start Khoj server in background