-
Notifications
You must be signed in to change notification settings - Fork 35
82 lines (61 loc) · 1.87 KB
/
instance_pool_ci.yml
File metadata and controls
82 lines (61 loc) · 1.87 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Monitor the pool of WorkArena instances
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *" # daily at 03:00 UTC
jobs:
test-l1-tasks:
name: Test L1 tasks
runs-on: ubuntu-22.04
defaults:
run:
shell: bash -l {0}
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
working-directory: ./dev
run: |
pip install -r requirements.txt
pip install huggingface_hub
- name: Pip list
run: pip list
- name: Install Playwright
run: playwright install chromium --with-deps
- name: Run L1 tests
run: pytest -n 20 --durations=10 --slowmo 1000 -v tests/test_task_general.py
test-snow-instance:
name: Test snow instance
runs-on: ubuntu-22.04
needs: test-l1-tasks # remove this line if you want both jobs to run in parallel
defaults:
run:
shell: bash -l {0}
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Python dependencies
working-directory: ./dev
run: |
pip install -r requirements.txt
pip install huggingface_hub
- name: Pip list
run: pip list
- name: Install Playwright
run: playwright install chromium --with-deps
- name: Run snow instance tests
run: pytest -n 20 --durations=10 --slowmo 1000 -v tests/test_snow_instance.py