fix: resolve CI failures across all GitHub Actions workflows
- Fix ruff format issue in doc_scraper.py - Add pytest skip markers for browser renderer tests when Playwright is not installed in CI - Replace broken Python heredocs in 4 workflow YAML files (scheduled-updates, vector-db-export, quality-metrics, test-vector-dbs) with python3 -c calls to fix YAML parsing errors Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
70
.github/workflows/scheduled-updates.yml
vendored
70
.github/workflows/scheduled-updates.yml
vendored
@@ -86,32 +86,28 @@ jobs:
|
||||
SKILL_DIR="output/$FRAMEWORK"
|
||||
|
||||
# Detect changes using incremental updater
|
||||
python3 << 'EOF'
|
||||
import sys
|
||||
from pathlib import Path
|
||||
sys.path.insert(0, 'src')
|
||||
python3 -c "
|
||||
import sys, os
|
||||
from pathlib import Path
|
||||
|
||||
from skill_seekers.cli.incremental_updater import IncrementalUpdater
|
||||
import os
|
||||
from skill_seekers.cli.incremental_updater import IncrementalUpdater
|
||||
|
||||
framework = os.environ['FRAMEWORK']
|
||||
skill_dir = Path(f'output/{framework}')
|
||||
framework = os.environ['FRAMEWORK']
|
||||
skill_dir = Path(f'output/{framework}')
|
||||
|
||||
updater = IncrementalUpdater(skill_dir)
|
||||
changes = updater.detect_changes()
|
||||
updater = IncrementalUpdater(skill_dir)
|
||||
changes = updater.detect_changes()
|
||||
|
||||
if changes.has_changes:
|
||||
print(f"🔄 Changes detected:")
|
||||
print(f" Added: {len(changes.added)}")
|
||||
print(f" Modified: {len(changes.modified)}")
|
||||
print(f" Deleted: {len(changes.deleted)}")
|
||||
|
||||
# Save current versions for next run
|
||||
updater.current_versions = updater._scan_documents()
|
||||
updater.save_current_versions()
|
||||
else:
|
||||
print("✓ No changes detected, skill is up to date")
|
||||
EOF
|
||||
if changes.has_changes:
|
||||
print(f'Changes detected:')
|
||||
print(f' Added: {len(changes.added)}')
|
||||
print(f' Modified: {len(changes.modified)}')
|
||||
print(f' Deleted: {len(changes.deleted)}')
|
||||
updater.current_versions = updater._scan_documents()
|
||||
updater.save_current_versions()
|
||||
else:
|
||||
print('No changes detected, skill is up to date')
|
||||
"
|
||||
|
||||
- name: Full scrape (if new or manual)
|
||||
if: steps.should_update.outputs.update == 'true' && steps.check_existing.outputs.exists == 'false'
|
||||
@@ -140,26 +136,24 @@ EOF
|
||||
|
||||
echo "📊 Generating quality metrics..."
|
||||
|
||||
python3 << 'EOF'
|
||||
import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
sys.path.insert(0, 'src')
|
||||
python3 -c "
|
||||
import sys, os
|
||||
from pathlib import Path
|
||||
|
||||
from skill_seekers.cli.quality_metrics import QualityAnalyzer
|
||||
from skill_seekers.cli.quality_metrics import QualityAnalyzer
|
||||
|
||||
framework = os.environ['FRAMEWORK']
|
||||
skill_dir = Path(f'output/{framework}')
|
||||
framework = os.environ['FRAMEWORK']
|
||||
skill_dir = Path(f'output/{framework}')
|
||||
|
||||
analyzer = QualityAnalyzer(skill_dir)
|
||||
report = analyzer.generate_report()
|
||||
analyzer = QualityAnalyzer(skill_dir)
|
||||
report = analyzer.generate_report()
|
||||
|
||||
print(f"\n📊 Quality Score: {report.overall_score.grade} ({report.overall_score.total_score:.1f}/100)")
|
||||
print(f" Completeness: {report.overall_score.completeness:.1f}%")
|
||||
print(f" Accuracy: {report.overall_score.accuracy:.1f}%")
|
||||
print(f" Coverage: {report.overall_score.coverage:.1f}%")
|
||||
print(f" Health: {report.overall_score.health:.1f}%")
|
||||
EOF
|
||||
print(f'Quality Score: {report.overall_score.grade} ({report.overall_score.total_score:.1f}/100)')
|
||||
print(f' Completeness: {report.overall_score.completeness:.1f}%')
|
||||
print(f' Accuracy: {report.overall_score.accuracy:.1f}%')
|
||||
print(f' Coverage: {report.overall_score.coverage:.1f}%')
|
||||
print(f' Health: {report.overall_score.health:.1f}%')
|
||||
"
|
||||
|
||||
- name: Package for Claude
|
||||
if: steps.should_update.outputs.update == 'true'
|
||||
|
||||
Reference in New Issue
Block a user