[pre-commit.ci] pre-commit autoupdate #78
Workflow file for this run
This file contains 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: tests | |
on: | |
push: | |
branches: | |
- remi-dev | |
- master | |
pull_request: | |
branches: '*' | |
env: | |
OCTFLAGS: --no-gui --no-window-system --silent | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get -y -qq update | |
sudo apt-get -y install octave liboctave-dev | |
sudo apt-get -y install nodejs npm | |
- name: Clone repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 2 | |
- name: Install SPM | |
run: | | |
git clone https://github.com/spm/spm12.git --depth 1 | |
make -C spm12/src PLATFORM=octave distclean | |
make -C spm12/src PLATFORM=octave | |
make -C spm12/src PLATFORM=octave install | |
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();" | |
- name: Install Moxunit and MOcov | |
run: | | |
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | |
make -C MOxUnit install | |
git clone https://github.com/MOcov/MOcov.git --depth 1 | |
make -C MOcov install | |
- name: Update octave path | |
run: | | |
octave $OCTFLAGS --eval "InitEnv; savepath();" | |
- name: Run tests | |
run: | | |
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();" | |
octave $OCTFLAGS --eval "RunTests" | |
cat test_report.log | grep 0 | |
bash <(curl -s https://codecov.io/bash) | |