Skip to content

Add debug block on Windows BehaviorSearch fix #99

Add debug block on Windows BehaviorSearch fix

Add debug block on Windows BehaviorSearch fix #99

on:
push:
branches: [main, master, feature/behaviorsearch]
name: "setup-netlogo" # Do not change!
permissions: read-all
jobs:
test-setup-netlogo:
strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, version: '6.4.0'}
- {os: windows-latest, version: 'release'}
- {os: macos-latest, version: 'release'}
- {os: ubuntu-latest, version: '6.4.0'}
- {os: ubuntu-latest, version: 'release'}
cache: ['false', 'true']
name: "${{ matrix.config.os }} (version: '${{ matrix.config.version }}') (cache: '${{ matrix.cache }}')"
runs-on: ${{ matrix.config.os }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up NetLogo
uses: ./setup-netlogo
with:
version: ${{ matrix.config.version }}
cache: ${{ matrix.cache }}
- name: Run experiment
run: |
# Run experiment
if [[ "${NETLOGO_VERSION}" =~ ^[0-6]\. ]]; then
model_extension='nlogo'
else
model_extension='nlogox'
fi
model_path="${NETLOGO_HOME}/models/Sample Models/Biology"
model_file="Wolf Sheep Predation.${model_extension}"
netlogo \
--headless \
--model "${model_path}/${model_file}" \
--experiment 'Wolf Sheep Crossing' \
--table "${RUNNER_TEMP}/table-output.csv"
cat "${RUNNER_TEMP}/table-output.csv"
shell: bash