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:
yusyus
2026-03-29 20:40:45 +03:00
parent 6fded977dd
commit 00c72ea4a3
6 changed files with 99 additions and 116 deletions

View File

@@ -5,13 +5,23 @@ Real end-to-end tests using actual Playwright + Chromium.
from __future__ import annotations
import pytest
from skill_seekers.cli.browser_renderer import (
BrowserRenderer,
_auto_install_chromium,
_check_playwright_available,
)
# Skip all real browser tests when Playwright is not installed
_has_playwright = _check_playwright_available()
requires_playwright = pytest.mark.skipif(
not _has_playwright,
reason="Playwright not installed (pip install 'skill-seekers[browser]')",
)
@requires_playwright
class TestPlaywrightAvailability:
"""Test that playwright is properly detected."""
@@ -23,6 +33,7 @@ class TestPlaywrightAvailability:
assert _auto_install_chromium() is True
@requires_playwright
class TestBrowserRendererReal:
"""Real end-to-end tests with actual Chromium."""
@@ -113,6 +124,7 @@ class TestDocScraperBrowserIntegration:
scraper = DocToSkillConverter(config)
assert scraper.browser_mode is False
@requires_playwright
def test_render_with_browser_returns_html(self):
"""Test the _render_with_browser helper directly."""
from skill_seekers.cli.doc_scraper import DocToSkillConverter