Hi everyone!

I’m excited to share my new NeLogo project: *netlogo-actions
<https://github.com/danielvartan/netlogo-actions>*, a set of GitHub Actions
<https://github.com/features/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.

There are several workflow examples
<https://github.com/danielvartan/netlogo-actions/blob/main/examples/setup-netlogo-1.yaml>
you can build from. You can also see *setup-netlogo* in use on this
repository’s actions page
<https://github.com/danielvartan/netlogo-actions/actions>. This action can
be combined with Quarto <https://quarto.org/> through the logolink
<https://danielvartan.github.io/logolink/> R package or pynetlogo
<https://pynetlogo.readthedocs.io/> for more advanced workflows. For an
example, see *netlogo-check <https://github.com/danielvartan/netlogo-check>*
.

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

You can learn more at: https://github.com/danielvartan/netlogo-actions

Happy modeling with NetLogo! :)

Cheers!

Daniel Vartanian

-- 
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/netlogo-devel/CADLV5vDX5zRz2UKdzVpn3rdQy-pJcEjZDVT2uzrjaKZjodP83Q%40mail.gmail.com.

Reply via email to