mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Use embedded postgres instead of postgres server for eval workflow
This commit is contained in:
4
.github/workflows/run_evals.yml
vendored
4
.github/workflows/run_evals.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user