Skip to content

BIDS schema update (#594) #664

BIDS schema update (#594)

BIDS schema update (#594) #664

name: "octave: tests"
on:
push:
branches:
- master
- dev
paths:
- '**.m'
- .github/workflows/*.yml
- schema.json
pull_request:
branches: ["*"]
paths:
- '**.m'
- .github/workflows/*.yml
- schema.json
env:
OCTFLAGS: --no-gui --no-window-system --silent
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave liboctave-dev
- name: Clone bids-matlab
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 1
- name: Install JSONio
run: |
git clone https://github.com/gllmflndn/JSONio.git --depth 1
cd JSONio
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
- name: Install bids-example and data
run: |
cd tests
make data
- name: MOxUnit Action
uses: joergbrech/moxunit-action@v1.2.0
with:
tests: tests # files or directories containing the MOxUnit test cases
src: +bids # directories to be added to the Octave search path before running the tests.
ext: JSONio tests/utils # External resources to add to the search put (excluded from coverage)
# data: # Directory for test data
with_coverage: false
# cover_xml_file: coverage.xml
# - name: Code coverage
# uses: codecov/codecov-action@v1
# with:
# file: coverage.xml # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
# fail_ci_if_error: true # optional (default = false)