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 actionlint warnings in workflow files

LearningCircuit4d4b81b766f8
diff --git a/.github/workflows/check-css-classes.yml b/.github/workflows/check-css-classes.yml
index e285630be8..5e164868a1 100644
--- a/.github/workflows/check-css-classes.yml
+++ b/.github/workflows/check-css-classes.yml
@@ -27,7 +27,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v6
with:
python-version: "3.10"
@@ -103,13 +103,13 @@ jobs:
echo 'CSS_CHECK_OUTPUT<<EOF'
cat css_check_output.txt
echo 'EOF'
- } >> $GITHUB_ENV
+ } >> "$GITHUB_ENV"
- if [ $exit_code -ne 0 ]; then
- echo "CSS_CHECK_FAILED=true" >> $GITHUB_ENV
+ if [ "$exit_code" -ne 0 ]; then
+ echo "CSS_CHECK_FAILED=true" >> "$GITHUB_ENV"
fi
- exit $exit_code
+ exit "$exit_code"
continue-on-error: true
- name: Show CSS check results
diff --git a/.github/workflows/mobile-ui-tests.yml b/.github/workflows/mobile-ui-tests.yml
index 743a3681db..921a9cea72 100644
--- a/.github/workflows/mobile-ui-tests.yml
+++ b/.github/workflows/mobile-ui-tests.yml
@@ -68,7 +68,7 @@ jobs:
echo "Starting server with LDR_DATA_DIR=$LDR_DATA_DIR"
LDR_DATA_DIR=$PWD/data PYTHONPATH=$PWD/src:$PYTHONPATH pdm run python -m local_deep_research.web.app &
SERVER_PID=$!
- echo "SERVER_PID=$SERVER_PID" >> $GITHUB_ENV
+ echo "SERVER_PID=$SERVER_PID" >> "$GITHUB_ENV"
# Wait for server to be ready
for i in {1..30}; do
@@ -117,7 +117,7 @@ jobs:
- name: Stop server
if: always()
run: |
- if [ ! -z "$SERVER_PID" ]; then
- kill $SERVER_PID || true
+ if [ -n "$SERVER_PID" ]; then
+ kill "$SERVER_PID" || true
fi
pkill -f "python -m local_deep_research.web.app" || true
diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.yml
index 7185ed5ba0..58d9475bb2 100644
--- a/.github/workflows/responsive-ui-tests-enhanced.yml
+++ b/.github/workflows/responsive-ui-tests-enhanced.yml
@@ -46,7 +46,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Python
- uses: actions/setup-python@v4
+ uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
@@ -167,41 +167,45 @@ jobs:
TEST_EXIT_CODE=${PIPESTATUS[0]}
# Extract summary for PR comment
- echo "### 📱 ${{ matrix.viewport }} Test Results" > test-summary.md
- echo "" >> test-summary.md
-
# Extract pass/fail counts
PASSED=$(grep -oP '\d+(?= passed)' test-output.log | tail -1 || echo "0")
FAILED=$(grep -oP '\d+(?= failed)' test-output.log | tail -1 || echo "0")
WARNINGS=$(grep -oP '\d+(?= warnings)' test-output.log | tail -1 || echo "0")
- if [ "$FAILED" -eq "0" ]; then
- echo "✅ **All tests passed!**" >> test-summary.md
- else
- echo "❌ **$FAILED critical issues found**" >> test-summary.md
- fi
-
- echo "" >> test-summary.md
- echo "- ✅ Passed: $PASSED" >> test-summary.md
- echo "- ❌ Failed: $FAILED" >> test-summary.md
- echo "- ⚠️ Warnings: $WARNINGS" >> test-summary.md
+ {
+ echo "### 📱 ${{ matrix.viewport }} Test Results"
+ echo ""
+ if [ "$FAILED" -eq "0" ]; then
+ echo "✅ **All tests passed!**"
+ else
+ echo "❌ **$FAILED critical issues found**"
+ fi
+ echo ""
+ echo "- ✅ Passed: $PASSED"
+ echo "- ❌ Failed: $FAILED"
+ echo "- ⚠️ Warnings: $WARNINGS"
+ } > test-summary.md
- echo "test_exit_code=$TEST_EXIT_CODE" >> $GITHUB_OUTPUT
- echo "test_failed=$FAILED" >> $GITHUB_OUTPUT
+ echo "test_exit_code=$TEST_EXIT_CODE" >> "$GITHUB_OUTPUT"
+ echo "test_failed=$FAILED" >> "$GITHUB_OUTPUT"
# Only fail if critical failures
- exit $TEST_EXIT_CODE
+ exit "$TEST_EXIT_CODE"
- name: Generate screenshot gallery
if: false # Disabled - screenshots not needed in CI
working-directory: tests/ui_tests
+ env:
+ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
+ RUN_ID: ${{ github.run_id }}
+ VIEWPORT: ${{ matrix.viewport }}
run: |
# Create an HTML gallery of screenshots
- cat > screenshot-gallery.html << 'EOF'
+ cat > screenshot-gallery.html << EOF
<!DOCTYPE html>
<html>
<head>
- <title>UI Test Screenshots - ${{ matrix.viewport }}</title>
+ <title>UI Test Screenshots - ${VIEWPORT}</title>
<style>
body { font-family: Arial, sans-serif; margin: 20px; background: #f5f5f5; }
h1 { color: #333; }
@@ -217,8 +221,8 @@ jobs:
</style>
</head>
<body>
- <h1>📸 UI Test Screenshots - ${{ matrix.viewport }}</h1>
- <p>Test run: ${{ github.run_id }} | Branch: ${{ github.head_ref || github.ref_name }}</p>
+ <h1>📸 UI Test Screenshots - ${VIEWPORT}</h1>
+ <p>Test run: ${RUN_ID} | Branch: ${BRANCH_NAME}</p>
<div class="gallery">
EOF
@@ -239,10 +243,12 @@ jobs:
status="status-failed"
fi
- echo "<div class='screenshot $status'>" >> screenshot-gallery.html
- echo " <h3>$device - ${filename%.png}</h3>" >> screenshot-gallery.html
- echo " <img src='$img' onclick='openModal(this)' alt='$filename'>" >> screenshot-gallery.html
- echo "</div>" >> screenshot-gallery.html
+ {
+ echo "<div class='screenshot $status'>"
+ echo " <h3>$device - ${filename%.png}</h3>"
+ echo " <img src='$img' onclick='openModal(this)' alt='$filename'>"
+ echo "</div>"
+ } >> screenshot-gallery.html
fi
done
fi
@@ -308,7 +314,7 @@ jobs:
if: always()
run: |
if [ -f server.pid ]; then
- kill $(cat server.pid) || true
+ kill "$(cat server.pid)" || true
rm server.pid
fi
@@ -329,10 +335,12 @@ jobs:
- name: Generate combined report
run: |
# Create a combined markdown report with screenshot links
- echo "# 📊 Responsive UI Test Report" > combined-report.md
- echo "" >> combined-report.md
- echo "## Test Summary" >> combined-report.md
- echo "" >> combined-report.md
+ {
+ echo "# 📊 Responsive UI Test Report"
+ echo ""
+ echo "## Test Summary"
+ echo ""
+ } > combined-report.md
# Process each viewport's results
for dir in test-artifacts/ui-test-results-*/; do
@@ -347,18 +355,22 @@ jobs:
# Count screenshots
screenshot_count=$(find "$dir" -name "*.png" 2>/dev/null | wc -l)
if [ "$screenshot_count" -gt "0" ]; then
- echo "" >> combined-report.md
- echo "📸 **$screenshot_count screenshots captured**" >> combined-report.md
+ {
+ echo ""
+ echo "📸 **$screenshot_count screenshots captured**"
+ } >> combined-report.md
fi
echo "" >> combined-report.md
fi
done
- echo "## 📥 Download Options" >> combined-report.md
- echo "" >> combined-report.md
- echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> combined-report.md
- echo "- View artifacts in the 'Artifacts' section below the workflow summary" >> combined-report.md
+ {
+ echo "## 📥 Download Options"
+ echo ""
+ echo "- [Download all test artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
+ echo "- View artifacts in the 'Artifacts' section below the workflow summary"
+ } >> combined-report.md
- name: Upload combined report
uses: actions/upload-artifact@v4