Hi everyone!
I’m excited to share my new NeLogo project:
netlogo-actions, a set of
GitHub Actions that can be used to automate testing and execution of NetLogo models within GitHub workflows. I hope the community finds it useful!
Right now the repository includes the
setup-netlogo action, which installs NetLogo on the runner.
Here’s a basic workflow:
jobs:
NetLogo-check:
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup NetLogo
uses: danielvartan/netlogo-actions/setup-netlogo@v1
- name: Run Experiment
run: |
MODEL_PATH="$NETLOGO_HOME/models/Sample Models/Biology"
MODEL_FILE="Wolf Sheep Predation.nlogox"
netlogo \
--headless \
--model "$MODEL_PATH/$MODEL_FILE" \
--experiment "Wolf Sheep Crossing" \
--table /tmp/output.csv
cat /tmp/output.csv
Happy modeling with NetLogo! :)
Cheers!
Daniel Vartanian