-
Notifications
You must be signed in to change notification settings - Fork 32
67 lines (56 loc) · 1.62 KB
/
run_tests_octave.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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@v4
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/[email protected]
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)