Add sector id and category to sectors and objects (#691) #280
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 Gymnasium wrapper | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/test-gymnasium-wrapper.yml' | |
| - 'gymnasium_wrapper/**' | |
| - 'include/**' | |
| - 'src/**' | |
| - 'tests/test_gymnasium_wrapper.py' | |
| - 'CMakeLists.txt' | |
| - 'setup.py' | |
| - 'pyproject.toml' | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - '.github/workflows/test-gymnasium-wrapper.yml' | |
| - 'gymnasium_wrapper/**' | |
| - 'include/**' | |
| - 'src/**' | |
| - 'tests/test_gymnasium_wrapper.py' | |
| - 'CMakeLists.txt' | |
| - 'setup.py' | |
| - 'pyproject.toml' | |
| branches: [main] | |
| jobs: | |
| test_gymnasium_wrapper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies on Ubuntu | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt update | |
| sudo apt install -y cmake git libboost-all-dev libsdl2-dev libopenal-dev | |
| - name: Apt report | |
| if: runner.os == 'Linux' | |
| run: apt list --installed | |
| - name: Set up Python environment | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' | |
| - name: Python environment report | |
| run: python -c "import sys; print(sys.version)" | |
| - name: Pip install | |
| run: pip install .[test] | |
| - name: Import check | |
| run: python -c "import vizdoom" | |
| - name: Run tests | |
| run: pytest tests/test_gymnasium_wrapper.py -s |