Monitor the pool of WorkArena instances #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Monitor the pool of WorkArena instances | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 3 * * *" # daily at 03:00 UTC (adjust if needed) | |
| jobs: | |
| browsergym-workarena-fast: | |
| 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 test_task_general.py | |
| run: pytest -n 20 --durations=10 --slowmo 1000 -v tests/test_task_general.py |