Skip to content

Commit 07ec4a0

Browse files
authored
Merge branch 'main' into fix-configs
2 parents f17d505 + 1f9440d commit 07ec4a0

3 files changed

Lines changed: 88 additions & 6 deletions

File tree

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Monitor the pool of WorkArena instances
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 3 * * *" # daily at 03:00 UTC
7+
8+
jobs:
9+
10+
test-l1-tasks:
11+
name: Test L1 tasks
12+
runs-on: ubuntu-22.04
13+
14+
defaults:
15+
run:
16+
shell: bash -l {0}
17+
18+
env:
19+
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
20+
21+
steps:
22+
- name: Checkout Repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.12'
29+
cache: 'pip'
30+
31+
- name: Install Python dependencies
32+
working-directory: ./dev
33+
run: |
34+
pip install -r requirements.txt
35+
pip install huggingface_hub
36+
37+
- name: Pip list
38+
run: pip list
39+
40+
- name: Install Playwright
41+
run: playwright install chromium --with-deps
42+
43+
- name: Run L1 tests
44+
run: pytest -n 20 --durations=10 --slowmo 1000 -v tests/test_task_general.py
45+
46+
47+
test-snow-instance:
48+
name: Test snow instance
49+
runs-on: ubuntu-22.04
50+
needs: test-l1-tasks # remove this line if you want both jobs to run in parallel
51+
52+
defaults:
53+
run:
54+
shell: bash -l {0}
55+
56+
env:
57+
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
58+
59+
steps:
60+
- name: Checkout Repository
61+
uses: actions/checkout@v4
62+
63+
- name: Set up Python
64+
uses: actions/setup-python@v5
65+
with:
66+
python-version: '3.12'
67+
cache: 'pip'
68+
69+
- name: Install Python dependencies
70+
working-directory: ./dev
71+
run: |
72+
pip install -r requirements.txt
73+
pip install huggingface_hub
74+
75+
- name: Pip list
76+
run: pip list
77+
78+
- name: Install Playwright
79+
run: playwright install chromium --with-deps
80+
81+
- name: Run snow instance tests
82+
run: pytest -n 20 --durations=10 --slowmo 1000 -v tests/test_snow_instance.py

.github/workflows/unit_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: black . --check
3737

3838
browsergym-workarena-fast:
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-22.04
4040

4141
defaults:
4242
run:
@@ -50,7 +50,7 @@ jobs:
5050
- name: Set up Python
5151
uses: actions/setup-python@v5
5252
with:
53-
python-version: '3.10'
53+
python-version: '3.12'
5454
cache: 'pip' # caching pip dependencies
5555

5656
- name: Pip install
@@ -59,9 +59,9 @@ jobs:
5959

6060
- name: Pip list
6161
run: pip list
62-
62+
6363
- name: Install Playwright
64-
run: playwright install --with-deps
64+
run: playwright install chromium --with-deps
6565

6666
- name: Run non-slow browsergym-workarena Unit Tests
6767
env:

tests/test_task_general.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def snow_instance_entry(request):
3434

3535
@retry(
3636
stop=stop_after_attempt(5),
37-
retry=retry_if_exception_type(TimeoutError),
37+
retry=retry_if_exception_type(Exception),
3838
reraise=True,
39-
before_sleep=lambda _: logging.info("Retrying due to a TimeoutError..."),
39+
before_sleep=lambda _: logging.info("Retrying due to an exception..."),
4040
)
4141
@pytest.mark.parametrize("task_entrypoint", ATOMIC_TASKS)
4242
@pytest.mark.parametrize("random_seed", range(1))

0 commit comments

Comments
 (0)