JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix: remove ci workflow
huanggawa46830728f805
diff --git a/.gitcode/workflows/python-ut-test.yml b/.gitcode/workflows/python-ut-test.ymldeleted file mode 100644index 218b1637f8..0000000000--- a/.gitcode/workflows/python-ut-test.yml+++ /dev/null@@ -1,75 +0,0 @@-name: Python Unit Test--# 触发条件-on:- push:- branches: [ main, develop ]- pull_request:- branches: [ main, develop ]--# 环境变量-env:- PYTHON_VERSION: "3.12"--jobs:- # === 代码质量检查 ===- lint:- name: Code Quality Check- runs-on: ubuntu-latest- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: ${{ env.PYTHON_VERSION }}- cache: 'pip'-- - name: Install dependencies- run: |- python -m pip install --upgrade pip- pip install black ruff flake8 mypy bandit-- - name: Check code style with Black- run: black --check jiuwenclaw tests-- - name: Lint with Ruff- run: ruff check jiuwenclaw tests-- - name: Lint with Flake8- run: flake8 jiuwenclaw tests --count --select=E9,F63,F7,F82 --show-source --statistics-- - name: Type check with Mypy- run: mypy jiuwenclaw --ignore-missing-imports --no-strict-optional-- - name: Security scan with Bandit- run: bandit -r jiuwenclaw -f json -o bandit-report.json-- # === 单元测试(核心门禁)===- test:- name: Test Python ${{ matrix.python-version }}- runs-on: ubuntu-latest- strategy:- fail-fast: false- matrix:- python-version: ["3.11", "3.12", "3.13"]-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Set up Python ${{ matrix.python-version }}- uses: actions/setup-python@v5- with:- python-version: ${{ matrix.python-version }}- cache: 'pip'-- - name: Install dependencies- run: |- python -m pip install --upgrade pip- pip install -e ".[test]"-- - name: Run unit tests- run: |- pytest tests/unit/ -v --tb=short --cov=jiuwenclaw\ No newline at end of filediff --git a/.gitcode/workflows/test.yml b/.gitcode/workflows/test.ymldeleted file mode 100644index 9de187c1f3..0000000000--- a/.gitcode/workflows/test.yml+++ /dev/null@@ -1,33 +0,0 @@-name: Test Suite--# 快速测试工作流 - 仅运行测试-on:- push:- branches: [ main, develop, feature/** ]- pull_request:- branches: [ main, develop ]--jobs:- quick-test:- name: Quick Test- runs-on: ubuntu-latest- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: "3.12"- cache: 'pip'-- - name: Install dependencies- run: |- python -m pip install --upgrade pip- pip install -e ".[test]"-- - name: Run tests- run: pytest tests/unit/ -v --tb=short-- - name: Run tests with coverage- run: pytest tests/unit/ --cov=jiuwenclaw --cov-report=term-missingdiff --git a/tests/unit/evolution/test_schema.py b/tests/unit/evolution/test_schema.pyindex 61e54a1b57..6750323efe 100644--- a/tests/unit/evolution/test_schema.py+++ b/tests/unit/evolution/test_schema.py@@ -11,6 +11,7 @@ from jiuwenclaw.evolution.schema import (EvolutionFile,EvolutionSignal,VALID_SECTIONS,+ ExperienceTarget,)@@ -44,7 +45,6 @@ class TestEvolutionChange:assert change.section == "Instructions"assert change.action == "append"assert change.content == "Test content"- assert change.relevant is Trueassert change.merge_target is None@staticmethod@@ -54,7 +54,8 @@ class TestEvolutionChange:section="Troubleshooting",action="append",content="Fix: Check configuration",- relevant=True,+ target=ExperienceTarget.BODY,+ skip_reason="duplicate",merge_target="entry_123",)result = change.to_dict()@@ -62,7 +63,8 @@ class TestEvolutionChange:"section": "Troubleshooting","action": "append","content": "Fix: Check configuration",- "relevant": True,+ "target": "body",+ "skip_reason": "duplicate","merge_target": "entry_123",}@@ -73,14 +75,12 @@ class TestEvolutionChange:"section": "Examples","action": "append","content": "Example content",- "relevant": False,"merge_target": "entry_456",}change = EvolutionChange.from_dict(data)assert change.section == "Examples"assert change.action == "append"assert change.content == "Example content"- assert change.relevant is Falseassert change.merge_target == "entry_456"@staticmethod@@ -91,7 +91,6 @@ class TestEvolutionChange:assert change.section == "Troubleshooting"assert change.action == "append"assert change.content == "Test content"- assert change.relevant is Trueassert change.merge_target is None@staticmethod@@ -180,7 +179,6 @@ class TestEvolutionEntry:"section": "Instructions","action": "append","content": "New instruction",- "relevant": True,},"applied": True,}@@ -310,7 +308,6 @@ class TestEvolutionFile:"section": "Instructions","action": "append","content": "Test content",- "relevant": True,},"applied": False,}