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: Tests on latest tag 3.11 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install system deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y python3-opengl cmake swig g++-9 gcc-9 | |
| export CC=gcc-9 CXX=g++-9 | |
| - name: Upgrade pip & build tools | |
| run: python -m pip install --upgrade pip==25.1 setuptools==78.1.1 wheel==0.45.1 | |
| - name: Install Python deps | |
| run: | | |
| python -m pip install -r requirements.txt | |
| python -m pip install opencv-python-headless | |
| python -m pip install autorom[accept-rom-license] | |
| - name: Run Python script to automate AutoROM | |
| run: python tests/autorom_run.py | |
| - name: Run tests | |
| run: python -m unittest tests.test_envs_api | |