|
| 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 |
0 commit comments