Define --full as the composition of --all, --max-steps 100, and --auto-respond. Also fix a few reward parsing bugs. #1622
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install Python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Setup virtual display | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb | |
| Xvfb :99 -screen 0 1920x1080x24 -ac & | |
| sleep 3 | |
| - name: Install Playwright browsers | |
| run: uv run --with=".[dev]" playwright install chromium | |
| - name: Run tests | |
| env: | |
| DISPLAY: :99 | |
| XAUTHORITY: /dev/null | |
| run: uv run --python ${{ matrix.python-version }} --with=".[dev]" pytest --rootdir=hud --ignore=hud/rl/tests --cov --cov-report='' | |
| lint-ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Run ruff | |
| run: | | |
| uv run --with=".[dev]" ruff format . --check | |
| uv run --with=".[dev]" ruff check . | |
| lint-pyright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Run pyright | |
| run: uv run --with=".[dev]" pyright |