Skip to content

Commit 1f02f3f

Browse files
committed
update makefile and readme
1 parent 377dcca commit 1f02f3f

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

Makefile

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ setup-miniwob:
2828
@echo "💡 To use MiniWoB++, load the environment variables:"
2929
@echo " source .env"
3030

31+
setup-webarena-verified:
32+
@echo "--- 🌐 Setting up WebArena Verified ---"
33+
@if [ ! -d "../platform-labs-webarena-verified" ]; then \
34+
echo "Cloning WebArena Verified repository..."; \
35+
git clone https://github.com/ServiceNow/platform-labs-webarena-verified.git ../platform-labs-webarena-verified; \
36+
else \
37+
echo "WebArena Verified repository already exists, skipping clone..."; \
38+
fi
39+
@echo "Installing WebArena Verified package..."
40+
pip install -e ../platform-labs-webarena-verified
41+
@echo "✅ WebArena Verified setup complete!"
42+
3143
test-core:
3244
@echo "--- 🧪 Running tests ---"
3345
pytest -n auto ./tests/core
@@ -39,12 +51,13 @@ clean-miniwob:
3951

4052
help:
4153
@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
54+
@echo " install - Install project dependencies"
55+
@echo " setup-miniwob - Setup MiniWoB++ dependencies"
56+
@echo " setup-webarena-verified - Setup WebArena Verified dependencies"
57+
@echo " install-demo - Install demo dependencies"
58+
@echo " demo - Run demo agent"
59+
@echo " test-core - Run core tests"
60+
@echo " clean-miniwob - Remove MiniWoB++ directory"
61+
@echo " help - Show this help message"
62+
63+
.PHONY: install setup-miniwob setup-webarena-verified install-demo demo test-core clean-miniwob help

browsergym/webarena_verified/README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@ This package provides `browsergym.webarena_verified`, which integrates the [WebA
66

77
Follow the official [webarena README](https://github.com/web-arena-x/webarena/blob/main/environment_docker/README.md)
88

9-
## Setup
9+
## WebArena Verified Setup
1010

11-
#### 1. Install webarena-verified in the same folder that contains BrowserGym
11+
#### 1. Install webarena-verified
1212

1313
```bash
14-
git clone https://github.com/ServiceNow/platform-labs-webarena-verified.git ../webarena-verified
15-
pip install -e ../webarena-verified
16-
```
17-
18-
#### 2. Install this BrowserGym package
19-
20-
```bash
21-
pip install -e ./browsergym/webarena_verified
14+
make install
15+
make setup-webarena-verified # this commands will install webarena-verified in the same folder that contains BrowserGym
2216
```
23-
2417
Alternatively, you can also run:
2518
```bash
26-
make install
19+
pip install -e ./browsergym/webarena_verified
20+
git clone https://github.com/ServiceNow/platform-labs-webarena-verified.git ../platform-labs-webarena-verified
21+
pip install -e ../platform-labs-webarena-verified
2722
```
2823

29-
#### 3. Setup WebArena environment URLs
24+
#### 2. Setup WebArena environment URLs
3025

3126
```bash
3227
export WA_SHOPPING="..."

0 commit comments

Comments
 (0)