Skip to content

[FIX] close #340 and #355 #755

[FIX] close #340 and #355

[FIX] close #340 and #355 #755

name: MATLAB Unit Tests
on:
push:
branches:
- master
pull_request:
jobs:
matlab_unit_test:
strategy:
fail-fast: false
matrix:
matlab-version: [R019b, latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
shell: bash
run: |
python -m pip install numpy vtk
[[ -z $(git remote show origin | grep "Fetch URL:" | grep [email protected]:MICA-MNI/BrainStat.git) ]] && git config remote.upstream.fetch refs/heads/*:refs/remotes/upstream/* || git config remote.origin.fetch refs/heads/*:refs/origin/upstream/*
git fetch origin test-data-2.0
git checkout origin/test-data-2.0 -- extern/test-data
git reset extern/test-data
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v0
- name: Run tests
uses: matlab-actions/run-tests@v0
with:
source-folder: brainstat_matlab