Skip to content

Commit ac0a465

Browse files
Kowserclaude
andcommitted
Move agent tests under tests/unit/ai and tests/integration/ai
Nests the migrated agent tests as an `ai` topic-subdir under Conductor's pre-existing tests/unit and tests/integration parents (matching the convention already used for automator/, orkes/, etc.), instead of the old tests/ai/{unit,integration} structure that stood apart as a parallel top-level grouping. tests/ai/fixtures is unaffected. Fixes test_skill.py's FIXTURES path, which assumed fixtures was a sibling one level up (true under the old layout) and pointed at a nonexistent directory after the move. Updates the PR CI step and scripts/run_agent_tests.sh's hardcoded paths to match. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 9af5e59 commit ac0a465

90 files changed

Lines changed: 7 additions & 15 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pull_request.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
run: |
3434
python -c "import conductor.ai.agents"
3535
36+
- name: Install agents extra
37+
run: |
38+
pip install -e '.[agents]'
39+
pip install pytest-asyncio
40+
3641
- name: Prepare coverage directory
3742
run: |
3843
mkdir -p ${{ env.COVERAGE_DIR }}
@@ -70,19 +75,6 @@ jobs:
7075
run: |
7176
coverage run -m pytest tests/serdesertest -v
7277
73-
- name: Install agents extra
74-
run: |
75-
pip install -e '.[agents]'
76-
pip install pytest-asyncio
77-
78-
- name: Run agent tests
79-
id: agent_tests
80-
continue-on-error: true
81-
env:
82-
COVERAGE_FILE: ${{ env.COVERAGE_DIR }}/.coverage.agents
83-
run: |
84-
coverage run -m pytest tests/ai -m "not integration and not e2e" -v
85-
8678
- name: Generate coverage report
8779
id: coverage_report
8880
run: |
@@ -110,5 +102,5 @@ jobs:
110102
file: coverage.xml
111103

112104
- name: Check test results
113-
if: steps.unit_tests.outcome == 'failure' || steps.bc_tests.outcome == 'failure' || steps.serdeser_tests.outcome == 'failure' || steps.agent_base_import.outcome == 'failure' || steps.agent_tests.outcome == 'failure'
105+
if: steps.unit_tests.outcome == 'failure' || steps.bc_tests.outcome == 'failure' || steps.serdeser_tests.outcome == 'failure' || steps.agent_base_import.outcome == 'failure'
114106
run: exit 1

tests/ai/integration/test_behavioral_correctness_live.py renamed to tests/integration/ai/test_behavioral_correctness_live.py

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)