Room builders for maze and cylinder #112
This file contains 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: Python Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.7' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install PufferLib | |
run: | | |
cd .. | |
git clone https://github.com/Metta-AI/pufferlib.git | |
cd pufferlib | |
git fetch | |
git stash | |
git checkout metta | |
git pull | |
python setup.py build_ext --inplace | |
pip install -e . | |
- name: Run setup.py build_ext | |
run: | | |
python setup.py build_ext --inplace | |
- name: Run tests | |
env: | |
HYDRA_FULL_ERROR: 1 | |
PYTHONPATH: ${{ github.workspace }} | |
run: | | |
python tests/test_basic.py | |
python tests/test_game_builder.py | |
python tests/test_kinship.py |