Skip to content

Add GUI test models #536

Add GUI test models

Add GUI test models #536

Workflow file for this run

name: build-and-test
on:
push:
pull_request:
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
if: ${{ 'pull_request' != github.event_name || (github.event.pull_request.head.repo.git_url != github.event.pull_request.base.repo.git_url) }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 21.0.2
java-package: jdk+fx
cache: sbt
- name: Install R for sr extension
uses: r-lib/actions/setup-r@v2
with:
r-version: 'latest'
- name: Install spatstat package in R
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::spatstat
cache-version: 2
- uses: sbt/setup-sbt@v1
- uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install Dependencies
run: |
pip install numpy
pip install scikit-learn
sudo apt-get -y install aspell
- name: Build
# We even install the extensions we can't or won't test just to avoid compile errors with them.
# -Jeremy B May 2021
run: sbt -v update compile test:compile "test:runMain org.nlogo.workspace.ExtensionInstaller arduino array bitmap csv gis gogo ls matrix nw palette profiler py r resource rnd sr sound table time vid view2.5d"
- name: Test 2D
run: sbt -v -Dorg.nlogo.onLocal=false test
- name: Test 3D
run: sbt -v -Dorg.nlogo.onLocal=false -Dorg.nlogo.is3d=true test
- name: Failure Debug Info
if: ${{ failure() }}
run: |
pwd
sudo apt-get -y install tree
tree