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(ci): Copy coverage files to fresh dir before git deploy

LearningCircuit027d0c8a9b3d
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9df127f1a7..40a1493b36 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -489,7 +489,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
- set -e
+ set -ex
# Check source exists
if [ ! -d "coverage/htmlcov" ]; then
@@ -505,23 +505,34 @@ jobs:
exit 1
fi
+ # Copy to a fresh directory to avoid Docker volume/git issues
+ DEPLOY_DIR=$(mktemp -d)
+ cp -r coverage/htmlcov/* "$DEPLOY_DIR/"
+ cd "$DEPLOY_DIR"
+
+ # Create .nojekyll to bypass Jekyll processing
+ touch .nojekyll
+
+ # Debug: show what we have
+ echo "Files in deploy dir:"
+ find . -type f | head -10
+ echo "Total files: $(find . -type f | wc -l)"
+
# Setup git
- cd coverage/htmlcov
git init
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- # Create .nojekyll to bypass Jekyll processing
- touch .nojekyll
-
# Add all files and commit
git add -A
+ git status
git commit -m "docs: update coverage report ${{ github.sha }}"
# Force push to gh-pages branch
git push --force "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git" HEAD:gh-pages
echo "Deployment complete!"
+ rm -rf "$DEPLOY_DIR"
# Add coverage summary as PR comment for easy visibility
- name: Comment coverage on PR