Clean implementation of mixed-play (self-play with adjustable replay population) #986
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: render-ci | |
| on: | |
| pull_request: | |
| branches: [ 2.0 ] | |
| push: | |
| branches: [ 2.0 ] | |
| jobs: | |
| test-render: | |
| name: test-render - ubuntu-latest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.11" | |
| - name: Check disk space (before cleanup) | |
| run: df -h | |
| - name: Free up disk space | |
| run: | | |
| echo "Before cleanup:" | |
| df -h | |
| sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc | |
| sudo apt-get clean | |
| sudo rm -rf ~/.cache/pip /tmp/* /var/tmp/* | |
| echo "After cleanup:" | |
| df -h | |
| - name: Install system dependencies for headless rendering | |
| run: | | |
| sudo apt update | |
| sudo apt install -y ffmpeg xvfb build-essential | |
| - name: Upgrade pip | |
| run: python -m pip install -U pip | |
| - name: Install pufferlib | |
| run: | | |
| pip install -e .[cpu] --no-cache-dir | |
| env: | |
| TMPDIR: ${{ runner.temp }}/build | |
| PIP_NO_CACHE_DIR: 1 | |
| - name: Compile C extensions | |
| run: python setup.py build_ext --inplace --force | |
| - name: Check disk space (after install) | |
| run: df -h | |
| - name: Run render test | |
| run: python tests/test_drive_render.py | |
| timeout-minutes: 15 |