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: resolve shellcheck violations in GitHub Actions workflows

LearningCircuita28fce50623a
diff --git a/.github/workflows/enhanced-tests.yml b/.github/workflows/enhanced-tests.yml
index 5ed3271ce7..fe5282a80c 100644
--- a/.github/workflows/enhanced-tests.yml
+++ b/.github/workflows/enhanced-tests.yml
@@ -29,7 +29,7 @@ jobs:
- name: Run enhanced test framework tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e LDR_USE_FALLBACK_LLM=true \
-e CI=true \
-w /app \
@@ -44,7 +44,7 @@ jobs:
- name: Run fixture tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e LDR_USE_FALLBACK_LLM=true \
-e CI=true \
-w /app \
diff --git a/.github/workflows/llm-tests.yml b/.github/workflows/llm-tests.yml
index 345a7fc2e4..0ef5dd05d4 100644
--- a/.github/workflows/llm-tests.yml
+++ b/.github/workflows/llm-tests.yml
@@ -33,7 +33,7 @@ jobs:
- name: Run LLM registry tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-w /app \
ldr-test \
@@ -42,7 +42,7 @@ jobs:
- name: Run LLM integration tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
@@ -52,7 +52,7 @@ jobs:
- name: Run API LLM integration tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
@@ -62,7 +62,7 @@ jobs:
- name: Run LLM edge case tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-w /app \
ldr-test \
@@ -71,7 +71,7 @@ jobs:
- name: Run LLM benchmark tests
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-w /app \
ldr-test \
@@ -91,7 +91,7 @@ jobs:
- name: Test basic custom LLM example
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
@@ -101,7 +101,7 @@ jobs:
- name: Test mock LLM example
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
@@ -111,7 +111,7 @@ jobs:
- name: Test provider switching example
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
@@ -121,7 +121,7 @@ jobs:
- name: Test custom research example
run: |
docker run --rm \
- -v $PWD:/app \
+ -v "$PWD":/app \
-e PYTHONPATH=/app \
-e LDR_USE_FALLBACK_LLM=true \
-w /app \
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 0bcd0b68d9..6e41b12b0c 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -51,7 +51,7 @@ jobs:
echo ""
echo "📁 Pre-build directory structure:"
echo "Contents of src/local_deep_research/web/static/:"
- ls -la src/local_deep_research/web/static/ || echo "Directory not found"
+ find src/local_deep_research/web/static/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null || echo "Directory not found"
# Build with Vite (outputs to src/local_deep_research/web/static/dist)
echo ""
@@ -63,10 +63,10 @@ jobs:
echo ""
echo "📁 Post-build directory structure:"
echo "Contents of src/local_deep_research/web/static/:"
- ls -la src/local_deep_research/web/static/
+ find src/local_deep_research/web/static/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null
echo ""
echo "Contents of src/local_deep_research/web/static/dist/:"
- ls -la src/local_deep_research/web/static/dist/
+ find src/local_deep_research/web/static/dist/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null
echo ""
echo "Looking for manifest.json:"
find src/local_deep_research/web/static/dist -name "manifest.json" -type f 2>/dev/null || echo "No manifest.json found"
@@ -131,16 +131,16 @@ jobs:
echo ""
echo "📁 Checking downloaded artifacts structure:"
echo "Contents of src/:"
- ls -la src/ 2>/dev/null || echo "src/ directory not found"
+ find src/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null || echo "src/ directory not found"
echo ""
echo "Contents of src/local_deep_research/:"
- ls -la src/local_deep_research/ 2>/dev/null || echo "src/local_deep_research/ not found"
+ find src/local_deep_research/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null || echo "src/local_deep_research/ not found"
echo ""
echo "Contents of src/local_deep_research/web/:"
- ls -la src/local_deep_research/web/ 2>/dev/null || echo "src/local_deep_research/web/ not found"
+ find src/local_deep_research/web/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null || echo "src/local_deep_research/web/ not found"
echo ""
echo "Contents of src/local_deep_research/web/static/:"
- ls -la src/local_deep_research/web/static/ 2>/dev/null || echo "src/local_deep_research/web/static/ not found"
+ find src/local_deep_research/web/static/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null || echo "src/local_deep_research/web/static/ not found"
# Check if dist directory exists
echo ""
@@ -159,7 +159,7 @@ jobs:
echo ""
echo "📁 Dist directory structure:"
echo "Contents of dist/:"
- ls -la src/local_deep_research/web/static/dist/
+ find src/local_deep_research/web/static/dist/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null
echo ""
echo "All files in dist (recursive):"
find src/local_deep_research/web/static/dist -type f | head -20
@@ -183,7 +183,7 @@ jobs:
echo "Looking for any manifest.json files:"
find src/local_deep_research/web/static -name "manifest.json" -type f 2>/dev/null || echo "None found"
echo "Checking if .vite directory exists:"
- ls -la src/local_deep_research/web/static/dist/ | grep -E "^\." || echo "No hidden directories found"
+ find src/local_deep_research/web/static/dist/ -maxdepth 1 -name ".*" -type d || echo "No hidden directories found"
echo ""
echo "This is likely due to artifact transfer losing the hidden .vite directory."
echo "The include-hidden-files option should fix this."
@@ -251,7 +251,7 @@ jobs:
echo "✅ Package build completed"
echo ""
echo "📁 Package contents:"
- ls -la dist/
+ find dist/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null
echo ""
echo "Package sizes:"
du -h dist/*
@@ -291,7 +291,7 @@ jobs:
echo ""
echo "Package details:"
for file in dist/*; do
- echo " - $(basename $file): $(du -h $file | cut -f1)"
+ echo " - $(basename "$file"): $(du -h "$file" | cut -f1)"
done
- name: Verify package contents
@@ -305,13 +305,13 @@ jobs:
pip install wheel
# Find the wheel file
- WHEEL_FILE=$(ls dist/*.whl 2>/dev/null | head -1)
- TAR_FILE=$(ls dist/*.tar.gz 2>/dev/null | head -1)
+ WHEEL_FILE=$(find dist -name "*.whl" -type f 2>/dev/null | head -1)
+ TAR_FILE=$(find dist -name "*.tar.gz" -type f 2>/dev/null | head -1)
if [ -z "$WHEEL_FILE" ]; then
echo "❌ ERROR: No wheel file found in dist/"
echo "Found files:"
- ls -la dist/
+ find dist/ -maxdepth 1 -type f -exec ls -la {} + 2>/dev/null
exit 1
fi