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.

feat: Add comprehensive frontend verification stages to PyPI publish workflow

LearningCircuit23385af797f7
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 466166defe..b2c5dbecec 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -76,6 +76,47 @@ jobs:
name: frontend-assets
path: src/local_deep_research/web/static/
+ - name: Verify frontend build artifacts
+ run: |
+ echo "Verifying frontend build artifacts..."
+
+ # Check if dist directory exists
+ if [ ! -d "src/local_deep_research/web/static/dist" ]; then
+ echo "ERROR: Frontend dist directory not found!"
+ echo "The frontend build artifacts are missing."
+ exit 1
+ fi
+
+ # Check for critical files
+ if [ ! -f "src/local_deep_research/web/static/dist/.vite/manifest.json" ]; then
+ echo "ERROR: Vite manifest.json not found!"
+ echo "The frontend build appears to be incomplete."
+ exit 1
+ fi
+
+ # Check for JS files
+ if [ -z "$(ls -A src/local_deep_research/web/static/dist/js/*.js 2>/dev/null)" ]; then
+ echo "ERROR: No JavaScript files found in dist/js!"
+ echo "The frontend build appears to be incomplete."
+ exit 1
+ fi
+
+ # Check for CSS files
+ if [ -z "$(ls -A src/local_deep_research/web/static/dist/css/*.css 2>/dev/null)" ]; then
+ echo "ERROR: No CSS files found in dist/css!"
+ echo "The frontend build appears to be incomplete."
+ exit 1
+ fi
+
+ # Check for build marker
+ if [ ! -f "src/local_deep_research/web/static/.frontend-built" ]; then
+ echo "WARNING: Frontend build marker not found (non-critical)"
+ fi
+
+ echo "✓ Frontend build artifacts verified successfully"
+ echo "Found dist directory with:"
+ ls -la src/local_deep_research/web/static/dist/ | head -10
+
- name: Build Python package
run: pdm build
@@ -104,6 +145,48 @@ jobs:
- name: List packages
run: ls -lh dist/
+ - name: Verify package contents
+ run: |
+ echo "Verifying package contains frontend assets..."
+
+ # Install wheel to inspect package
+ pip install wheel
+
+ # Find the wheel file
+ WHEEL_FILE=$(ls dist/*.whl 2>/dev/null | head -1)
+
+ if [ -z "$WHEEL_FILE" ]; then
+ echo "ERROR: No wheel file found in dist/"
+ exit 1
+ fi
+
+ echo "Inspecting wheel: $WHEEL_FILE"
+
+ # Extract and check for frontend files
+ python -m zipfile -l "$WHEEL_FILE" > wheel_contents.txt
+
+ # Check for critical frontend directories/files
+ if ! grep -q "local_deep_research/web/static/dist/" wheel_contents.txt; then
+ echo "ERROR: Frontend dist directory not found in package!"
+ echo "Package is missing frontend build artifacts."
+ cat wheel_contents.txt | grep "static" || echo "No static files found"
+ exit 1
+ fi
+
+ if ! grep -q "local_deep_research/web/static/dist/js/" wheel_contents.txt; then
+ echo "ERROR: Frontend JS files not found in package!"
+ exit 1
+ fi
+
+ if ! grep -q "local_deep_research/web/static/dist/css/" wheel_contents.txt; then
+ echo "ERROR: Frontend CSS files not found in package!"
+ exit 1
+ fi
+
+ echo "✓ Package verification successful"
+ echo "Package contains frontend assets:"
+ grep "local_deep_research/web/static/dist/" wheel_contents.txt | head -5
+
- name: Publish to Test PyPI
if: github.event.release.prerelease == true
uses: pypa/gh-action-pypi-publish@release/v1