|
12 | 12 | @echo "--- 🚀 Running demo agent ---" |
13 | 13 | (set -x && cd demo_agent && python run_demo.py) |
14 | 14 |
|
| 15 | +setup-miniwob: |
| 16 | + @echo "--- 🤖 Setting up MiniWoB++ ---" |
| 17 | + @if [ ! -d "miniwob-plusplus" ]; then \ |
| 18 | + echo "Cloning MiniWoB++ repository..."; \ |
| 19 | + git clone https://github.com/Farama-Foundation/miniwob-plusplus.git; \ |
| 20 | + else \ |
| 21 | + echo "MiniWoB++ repository already exists, skipping clone..."; \ |
| 22 | + fi |
| 23 | + @echo "Resetting to specific commit for reproducibility..." |
| 24 | + git -C "./miniwob-plusplus" reset --hard 7fd85d71a4b60325c6585396ec4f48377d049838 |
| 25 | + @echo "Adding MINIWOB_URL to .env file..." |
| 26 | + @echo "MINIWOB_URL=\"file://$(shell pwd)/miniwob-plusplus/miniwob/html/miniwob/\"" >> .env |
| 27 | + @echo "✅ MiniWoB++ setup complete!" |
| 28 | + @echo "💡 To use MiniWoB++, load the environment variables:" |
| 29 | + @echo " source .env" |
| 30 | + |
15 | 31 | test-core: |
16 | 32 | @echo "--- 🧪 Running tests ---" |
17 | 33 | pytest -n auto ./tests/core |
| 34 | + |
| 35 | +clean-miniwob: |
| 36 | + @echo "--- 🧹 Cleaning MiniWoB++ installation ---" |
| 37 | + rm -rf miniwob-plusplus |
| 38 | + @echo "✅ MiniWoB++ installation cleaned!" |
| 39 | + |
| 40 | +help: |
| 41 | + @echo "Available targets:" |
| 42 | + @echo " install - Install project dependencies" |
| 43 | + @echo " setup-miniwob - Setup MiniWoB++ dependencies" |
| 44 | + @echo " install-demo - Install demo dependencies" |
| 45 | + @echo " demo - Run demo agent" |
| 46 | + @echo " test-core - Run core tests" |
| 47 | + @echo " clean-miniwob - Remove MiniWoB++ directory" |
| 48 | + @echo " help - Show this help message" |
| 49 | + |
| 50 | +.PHONY: install setup-miniwob install-demo demo test-core clean-miniwob help |
0 commit comments