-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (43 loc) · 1.98 KB
/
Makefile
File metadata and controls
49 lines (43 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
install:
@echo "--- 🚀 Installing project dependencies ---"
uv pip install -e ./browsergym/core -e ./browsergym/miniwob -e ./browsergym/webarena -e ./browsergym/webarenalite -e ./browsergym/visualwebarena/ -e ./browsergym/experiments -e ./browsergym/assistantbench -e ./browsergym/
uv run playwright install chromium
install-demo:
@echo "--- 🚀 Installing demo dependencies ---"
uv pip install -r demo_agent/requirements.txt
uv run playwright install chromium
demo:
@echo "--- 🚀 Running demo agent ---"
(set -x && cd demo_agent && python run_demo.py)
setup-miniwob:
@echo "--- 🤖 Setting up MiniWoB++ ---"
@if [ ! -d "miniwob-plusplus" ]; then \
echo "Cloning MiniWoB++ repository..."; \
git clone https://github.com/Farama-Foundation/miniwob-plusplus.git; \
else \
echo "MiniWoB++ repository already exists, skipping clone..."; \
fi
@echo "Resetting to specific commit for reproducibility..."
git -C "./miniwob-plusplus" reset --hard 7fd85d71a4b60325c6585396ec4f48377d049838
@echo "Adding MINIWOB_URL to .env file..."
@echo "MINIWOB_URL=\"file://$(shell pwd)/miniwob-plusplus/miniwob/html/miniwob/\"" >> .env
@echo "✅ MiniWoB++ setup complete!"
@echo "💡 To use MiniWoB++, load the environment variables:"
@echo " source .env"
test-core:
@echo "--- 🧪 Running tests ---"
uv run pytest -n auto ./tests/core
clean-miniwob:
@echo "--- 🧹 Cleaning MiniWoB++ installation ---"
rm -rf miniwob-plusplus
@echo "✅ MiniWoB++ installation cleaned!"
help:
@echo "Available targets:"
@echo " install - Install project dependencies"
@echo " setup-miniwob - Setup MiniWoB++ dependencies"
@echo " install-demo - Install demo dependencies"
@echo " demo - Run demo agent"
@echo " test-core - Run core tests"
@echo " clean-miniwob - Remove MiniWoB++ directory"
@echo " help - Show this help message"
.PHONY: install setup-miniwob install-demo demo test-core clean-miniwob help