Skip to content

Commit 6d5c8a3

Browse files
committed
Enhance backup process for root configuration files in GitHub Actions workflow
- Updated echo statements to provide clearer context regarding the backup of `agents.yaml` and `tools.py`, preventing default file resolution interference during tests. - Ensured minimal changes to existing code while improving clarity and user understanding of the backup process.
1 parent 4445db1 commit 6d5c8a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/unittest.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ jobs:
3636
3737
- name: Backup Root Config Files
3838
run: |
39-
echo "🔄 Backing up root configuration files to prevent interference..."
39+
echo "🔄 Backing up root configuration files to prevent default file resolution interference..."
40+
echo "ℹ️ PraisonAI automatically uses 'agents.yaml' in working directory when no file specified"
41+
echo "ℹ️ This can interfere with test files that specify their own YAML files"
4042
if [ -f "agents.yaml" ]; then
4143
mv agents.yaml agents.yaml.backup
42-
echo "✅ Moved agents.yaml to agents.yaml.backup"
44+
echo "✅ Moved root agents.yaml to agents.yaml.backup"
45+
echo " - This prevents default file fallback during tests"
4346
fi
4447
if [ -f "tools.py" ]; then
4548
mv tools.py tools.py.backup

0 commit comments

Comments
 (0)