Skip to content

Fix for empty metadata header #12 #24

Fix for empty metadata header #12

Fix for empty metadata header #12 #24

Workflow file for this run

name: Octave Tests
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
sudo apt-get update && sudo apt-get install -y \
octave liboctave-dev && \
octave --version
- name: Compile GIfTI MEX files
run: make -C @gifti/private PLATFORM=octave
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"
windows:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
choco install octave.portable
octave --version
- name: Compile GIfTI MEX files
run: octave --no-gui --no-window-system --silent --eval "system ('make -C @gifti/private PLATFORM=octave');"
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"
macos:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install GNU Octave
run: |
brew install octave # https://formulae.brew.sh/formula/octave
octave --version
- name: Compile GIfTI MEX files
run: octave --no-gui --no-window-system --silent --eval "system ('make -C @gifti/private PLATFORM=octave');"
- name: Install GIfTI library in GNU Octave
run: octave --no-gui --no-window-system --silent --eval "addpath (pwd); savepath ();"
- name: Run tests
run: octave --no-gui --no-window-system --silent --eval "cd tests; results = gifti_runtests; assert(all(~[results.Failed]))"