Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: set CI=true when starting server in UI test workflows

LearningCircuit391982aade13
diff --git a/.github/workflows/critical-ui-tests.yml b/.github/workflows/critical-ui-tests.yml
index cb1fac430b..7e61a31776 100644
--- a/.github/workflows/critical-ui-tests.yml
+++ b/.github/workflows/critical-ui-tests.yml
@@ -87,6 +87,7 @@ jobs:
env:
FLASK_ENV: testing
TEST_ENV: true
+ CI: true
SECRET_KEY: test-secret-key-for-ci
run: |
mkdir -p data/encrypted_databases
diff --git a/.github/workflows/extended-ui-tests.yml b/.github/workflows/extended-ui-tests.yml
index 3d205c271d..51b11abd18 100644
--- a/.github/workflows/extended-ui-tests.yml
+++ b/.github/workflows/extended-ui-tests.yml
@@ -59,6 +59,7 @@ jobs:
- name: Start server
run: |
export LDR_USE_FALLBACK_LLM=true
+ export CI=true
export PYTHONPATH=$PWD/src:$PYTHONPATH
pdm run python -m local_deep_research.web.app &
echo $! > server.pid
diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml
index d33a403ec0..3c2f36b6a1 100644
--- a/.github/workflows/ui-tests.yml
+++ b/.github/workflows/ui-tests.yml
@@ -13,9 +13,6 @@ on:
- cron: '0 3 * * *'
workflow_dispatch:
-permissions:
- contents: read
-
jobs:
ui-tests:
runs-on: ubuntu-latest
@@ -27,20 +24,20 @@ jobs:
(github.event_name == 'pull_request' && (github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'dev'))
steps:
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
+ - uses: actions/[email protected]
- name: Set up Python
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
+ uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Set up Node.js
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
+ uses: actions/setup-node@v6
with:
node-version: '18'
- name: Set up PDM
- uses: pdm-project/setup-pdm@94a823180e06fcde4ad29308721954a521c96ed0 # v4
+ uses: pdm-project/setup-pdm@v4
with:
python-version: '3.12'
@@ -62,16 +59,16 @@ jobs:
- name: Setup test directories
run: |
- mkdir -p data/encrypted_databases
+ mkdir -p data
mkdir -p tests/ui_tests/screenshots
echo "Created data and screenshots directories for tests"
- name: Start application server
run: |
export LDR_USE_FALLBACK_LLM=true
- export LDR_DATA_DIR=$PWD/data
+ export CI=true
export PYTHONPATH=$PWD/src:$PYTHONPATH
- echo "Starting web server with LDR_DATA_DIR=$LDR_DATA_DIR"
+ echo "Starting web server..."
pdm run python -m local_deep_research.web.app 2>&1 | tee server.log &
echo $! > server.pid
@@ -110,14 +107,14 @@ jobs:
- name: Upload UI test screenshots
if: always()
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+ uses: actions/[email protected]
with:
name: ui-test-screenshots
path: tests/ui_tests/screenshots/
- name: Upload UI test results
if: always()
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+ uses: actions/[email protected]
with:
name: ui-test-results
path: tests/ui_tests/results/