Fix Windows CI failures caused by Unicode emoji encoding errors

Replace Unicode emojis (, ⚠️) with ASCII text ([OK], [SKIP]) in GitHub Actions
workflow to prevent UnicodeEncodeError on Windows runners using cp1252 encoding.

This resolves all Windows test failures across Python 3.10, 3.11, and 3.12.
This commit is contained in:
FSSCoding 2025-08-26 19:09:37 +10:00
parent f5de046f95
commit f3c3c7500e

View File

@ -41,24 +41,24 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
# Run basic import tests # Run basic import tests
python -c "from mini_rag import CodeEmbedder, ProjectIndexer, CodeSearcher; print(' Core imports successful')" python -c "from mini_rag import CodeEmbedder, ProjectIndexer, CodeSearcher; print('[OK] Core imports successful')"
# Test basic functionality without venv requirements # Test basic functionality without venv requirements
python -c " python -c "
try: try:
from mini_rag.config import ConfigManager from mini_rag.config import ConfigManager
print(' Config system imports work') print('[OK] Config system imports work')
except Exception as e: except Exception as e:
print(f'⚠️ Config test skipped: {e}') print(f'[SKIP] Config test skipped: {e}')
try: try:
from mini_rag.chunker import CodeChunker from mini_rag.chunker import CodeChunker
print(' Chunker imports work') print('[OK] Chunker imports work')
except Exception as e: except Exception as e:
print(f'⚠️ Chunker test skipped: {e}') print(f'[SKIP] Chunker test skipped: {e}')
" "
echo " Core functionality tests completed" echo "[OK] Core functionality tests completed"
shell: bash shell: bash
- name: Test auto-update system - name: Test auto-update system
@ -67,16 +67,16 @@ jobs:
try: try:
from mini_rag.updater import UpdateChecker from mini_rag.updater import UpdateChecker
updater = UpdateChecker() updater = UpdateChecker()
print(' Auto-update system available') print('[OK] Auto-update system available')
except ImportError: except ImportError:
print('⚠️ Auto-update system not available (legacy version)') print('[SKIP] Auto-update system not available (legacy version)')
" "
- name: Test CLI commands - name: Test CLI commands
run: | run: |
echo " Checking for CLI files..." echo "[OK] Checking for CLI files..."
ls -la rag* || dir rag* || echo "CLI files may not be present" ls -la rag* || dir rag* || echo "CLI files may not be present"
echo " CLI check completed - this is expected in CI environment" echo "[OK] CLI check completed - this is expected in CI environment"
shell: bash shell: bash
security-scan: security-scan:
@ -97,7 +97,7 @@ jobs:
- name: Run security scan - name: Run security scan
run: | run: |
# Scan for security issues (non-failing) # Scan for security issues (non-failing)
bandit -r . -ll || echo " Security scan completed" bandit -r . -ll || echo "[OK] Security scan completed"
auto-update-check: auto-update-check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -119,10 +119,10 @@ jobs:
- name: Check for auto-update system - name: Check for auto-update system
run: | run: |
if [ -f "mini_rag/updater.py" ]; then if [ -f "mini_rag/updater.py" ]; then
echo " Auto-update system present" echo "[OK] Auto-update system present"
echo "UPDATE_AVAILABLE=true" >> $GITHUB_ENV echo "UPDATE_AVAILABLE=true" >> $GITHUB_ENV
else else
echo "⚠️ No auto-update system found" echo "[SKIP] No auto-update system found"
echo "UPDATE_AVAILABLE=false" >> $GITHUB_ENV echo "UPDATE_AVAILABLE=false" >> $GITHUB_ENV
fi fi
@ -133,8 +133,8 @@ jobs:
try: try:
from mini_rag.updater import UpdateChecker from mini_rag.updater import UpdateChecker
updater = UpdateChecker() updater = UpdateChecker()
print(f' Update system configured for: {updater.github_api_url}') print(f'[OK] Update system configured for: {updater.github_api_url}')
print(f' Check frequency: {updater.check_frequency_hours} hours') print(f'[OK] Check frequency: {updater.check_frequency_hours} hours')
except Exception as e: except Exception as e:
print(f'⚠️ Update system validation skipped: {e}') print(f'[SKIP] Update system validation skipped: {e}')
" "