Revert "Update PreprocessSpikes.m" #167
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: MATLAB CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| with: | |
| path: neurocode # Checkout into a folder named 'neurocode' | |
| - name: Checkout external repository | |
| uses: actions/checkout@v2 | |
| with: | |
| repository: ayalab1/CellExplorer | |
| path: CellExplorer | |
| - name: Set up MATLAB | |
| uses: matlab-actions/setup-matlab@v1 | |
| - name: Compile MEX files | |
| run: | | |
| matlab -batch "cd neurocode/utilities/intervalsC+; mex CountInIntervals.c; mex FindInInterval.c; mex MatchUpIndices.c" | |
| matlab -batch "cd neurocode/utilities/mapsC+; mex Contiguous.c; mex FindField.c" | |
| - name: Run MATLAB tests | |
| run: | | |
| matlab -batch "addpath(genpath('neurocode')); addpath('CellExplorer/calc_CellMetrics'); results = runtests('neurocode/test'); assertSuccess(results);" |