Add Docker site environments and integration tests #2
Workflow file for this run
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: Test Docker Sites | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "dev/environments/docker/**" | |
| - "tests/integration/environments/**" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "dev/environments/docker/**" | |
| - "tests/integration/environments/**" | |
| jobs: | |
| test: | |
| name: Test Docker Sites | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Install Playwright browsers | |
| run: uv run playwright install chromium --with-deps | |
| - name: Build Docker image | |
| run: docker build -t webarena-verified:test . | |
| - name: Run Docker site integration tests | |
| run: uv run pytest tests/integration/environments/ -m docker --webarena-verified-docker-img webarena-verified:test |