~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
feat: Add GitHub Actions workflow for CSS class checking
LearningCircuitf951666c978c
diff --git a/.github/workflows/check-css-classes.yml b/.github/workflows/check-css-classes.ymlnew file mode 100644index 0000000000..aaac43c866--- /dev/null+++ b/.github/workflows/check-css-classes.yml@@ -0,0 +1,119 @@+name: Check CSS Class Naming++on:+ push:+ branches: [main, develop, "feat/*", "fix/*"]+ paths:+ - "src/local_deep_research/web/**/*.html"+ - "src/local_deep_research/web/**/*.css"+ - "src/local_deep_research/web/**/*.js"+ - ".pre-commit-hooks/check-css-class-prefix.py"+ pull_request:+ branches: [main, develop]+ paths:+ - "src/local_deep_research/web/**/*.html"+ - "src/local_deep_research/web/**/*.css"+ - "src/local_deep_research/web/**/*.js"+ - ".pre-commit-hooks/check-css-class-prefix.py"+ workflow_dispatch: # Allow manual triggering++jobs:+ check-css-classes:+ name: Check CSS Class Prefixes+ runs-on: ubuntu-latest++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4++ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.10"++ - name: Create check script+ run: |+ cat > check_all_css.py << 'EOF'+ #!/usr/bin/env python3+ import subprocess+ import sys+ from pathlib import Path++ def main():+ # Find all relevant files+ web_dir = Path("src/local_deep_research/web")+ if not web_dir.exists():+ print(f"Warning: Web directory not found at {web_dir}")+ return 0++ files_to_check = []+ for pattern in ["*.html", "*.css", "*.js"]:+ files_to_check.extend(web_dir.rglob(pattern))++ # Filter out test/vendor files+ files_to_check = [+ f for f in files_to_check+ if not any(x in str(f) for x in ["test", "spec", "vendor", "node_modules", "dist", "build"])+ ]++ if not files_to_check:+ print("No files to check")+ return 0++ print(f"Checking {len(files_to_check)} files for CSS class naming compliance...")++ # Run the check+ cmd = [sys.executable, ".pre-commit-hooks/check-css-class-prefix.py"] + [str(f) for f in files_to_check]+ result = subprocess.run(cmd, capture_output=True, text=True)++ print(result.stdout)+ if result.stderr:+ print(result.stderr, file=sys.stderr)++ if result.returncode != 0:+ print("\n❌ CSS class violations found!")+ print("All custom CSS classes must be prefixed with 'ldr-' to prevent conflicts.")+ print("This includes CSS in <style> tags within HTML files.")+ return 1++ print("\n✅ All CSS classes are properly prefixed!")+ return 0++ if __name__ == "__main__":+ sys.exit(main())+ EOF+ chmod +x check_all_css.py++ - name: Run CSS class check+ id: css_check+ run: python check_all_css.py+ continue-on-error: true++ - name: Comment on PR (if failed)+ if: failure() && github.event_name == 'pull_request'+ uses: actions/github-script@v7+ with:+ script: |+ const output = `+ ⚠️ **CSS Class Naming Issues Found**++ Some CSS classes are not prefixed with \`ldr-\`. This can cause conflicts when bundling.++ Please run locally to see details:+ \`\`\`bash+ ./scripts/check-css-classes.sh+ \`\`\`++ Or check the [workflow logs](${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}) for details.+ `;++ github.rest.issues.createComment({+ issue_number: context.issue.number,+ owner: context.repo.owner,+ repo: context.repo.repo,+ body: output+ });++ - name: Set exit code+ if: steps.css_check.outcome == 'failure'+ run: exit 1