Give your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Python agent-infrastructureai-agentai-searchautomationbilibiliclaude-codeclicursorfree-apillm-toolsmcppythonreddit-scrapertwitter-scraperweb-scraperxiaohongshuyoutube-transcript
test(ci): add Windows suite coverage
jiarue0fc5b78918c
diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.ymlindex 70074661..f6724071 100644--- a/.github/workflows/pytest.yml+++ b/.github/workflows/pytest.yml@@ -29,6 +29,26 @@ jobs:run: |pytest -q+ windows-test:+ runs-on: windows-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup Python+ uses: actions/setup-python@v5+ with:+ python-version: "3.12"++ - name: Install package and test deps+ run: |+ python -m pip install --upgrade pip+ python -m pip install -c constraints.txt -e ".[dev]"++ - name: Run tests+ run: |+ pytest -q+# Editable installs (-e) never exercise wheel packaging, so a broken wheel# can pass tests and still fail every real `pip install` from source.# This job builds the actual wheel and installs it into a clean venv.diff --git a/tests/test_paths.py b/tests/test_paths.pyindex 1f3425f1..c0d0bbde 100644--- a/tests/test_paths.py+++ b/tests/test_paths.py@@ -1,9 +1,12 @@# -*- coding: utf-8 -*-"""Behavior tests for cross-platform path and remediation helpers."""+import shutilimport subprocessfrom pathlib import Path+import pytest+from agent_reach.utils import paths@@ -17,8 +20,11 @@ def test_posix_ytdlp_fix_is_single_line_executable_and_idempotent(command = paths.render_ytdlp_fix_command()assert "\n" not in command- subprocess.run(["/bin/sh", "-c", command], check=True)- subprocess.run(["/bin/sh", "-c", command], check=True)+ shell = shutil.which("sh")+ if not shell:+ pytest.skip("POSIX sh is unavailable on this platform")+ subprocess.run([shell, "-c", command], check=True)+ subprocess.run([shell, "-c", command], check=True)config = tmp_path / ".config" / "yt-dlp" / "config"assert config.read_text(encoding="utf-8") == "--js-runtimes node\n"