Expose underlying ObjectTree that represents the state of the game. #49
Workflow file for this run
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: Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: olafurpg/setup-scala@v10 | |
- name: Compile ScienceWorld's JAR | |
run: ./simulator/package.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: scienceworld.jar | |
path: scienceworld/scienceworld.jar | |
if-no-files-found: error | |
test: | |
needs: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Remove old scienceworld.jar | |
run: python -c "import os; os.remove(os.path.join('scienceworld', 'scienceworld.jar'))" | |
- name: Download scienceworld.jar | |
uses: actions/download-artifact@v4 | |
with: | |
name: scienceworld.jar | |
path: scienceworld/ | |
- name: Install dependencies | |
run: | |
python -m pip install --upgrade pip | |
pip install tox tox-gh-actions | |
- name: Install ScienceWorld | |
run: | |
pip install -e . | |
- name: Test with tox | |
run: tox |