Skip to content

Commit b1a8983

Browse files
committed
chore: add debugging steps to GitHub Actions workflow for CrewAI tests
- Introduced a new debugging section to display the directory structure and contents relevant to CrewAI tests. - Enhanced the test execution process by attempting multiple methods to run CrewAI tests, providing clearer feedback on failures. These changes aim to improve visibility and troubleshooting during the testing process.
1 parent 4a65f77 commit b1a8983

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

β€Ž.github/workflows/test-core.ymlβ€Ž

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,26 @@ jobs:
106106
run: |
107107
cd src/praisonai && python -m pytest tests/integration/ -v --tb=short --disable-warnings
108108
109+
- name: Debug Directory Structure
110+
run: |
111+
echo "πŸ” Debugging directory structure for CrewAI tests..."
112+
cd src/praisonai
113+
echo "Current working directory: $(pwd)"
114+
echo "πŸ“ Contents of current directory:"
115+
ls -la
116+
echo ""
117+
echo "πŸ“ Contents of tests directory:"
118+
ls -la tests/ || echo "❌ tests/ directory not found"
119+
echo ""
120+
echo "πŸ“ Contents of tests/integration:"
121+
ls -la tests/integration/ || echo "❌ tests/integration/ directory not found"
122+
echo ""
123+
echo "πŸ“ Looking for crewai directory:"
124+
find . -name "crewai" -type d 2>/dev/null || echo "❌ No crewai directories found"
125+
echo ""
126+
echo "πŸ“ Full directory tree of tests:"
127+
tree tests/ || find tests/ -type d 2>/dev/null || echo "❌ Cannot explore tests directory"
128+
109129
- name: Test AutoGen Framework
110130
run: |
111131
echo "πŸ€– Testing AutoGen Framework Integration..."
@@ -114,7 +134,22 @@ jobs:
114134
- name: Test CrewAI Framework
115135
run: |
116136
echo "β›΅ Testing CrewAI Framework Integration..."
117-
cd src/praisonai && python tests/test_runner.py --pattern crewai --verbose
137+
cd src/praisonai
138+
echo "πŸ” Trying test runner first..."
139+
python tests/test_runner.py --pattern crewai --verbose || {
140+
echo "❌ Test runner failed, trying direct pytest..."
141+
echo "πŸ“ Current directory: $(pwd)"
142+
echo "πŸ“ Looking for CrewAI tests..."
143+
find . -name "*crewai*" -type f 2>/dev/null
144+
echo "πŸ§ͺ Trying direct pytest on integration/crewai..."
145+
python -m pytest tests/integration/crewai/ -v --tb=short --disable-warnings || {
146+
echo "❌ Direct path failed, trying relative path..."
147+
python -m pytest integration/crewai/ -v --tb=short --disable-warnings || {
148+
echo "❌ All CrewAI test attempts failed"
149+
exit 1
150+
}
151+
}
152+
}
118153
119154
- name: Run Legacy Tests with API Key
120155
run: |

0 commit comments

Comments
Β (0)