Skip to content

Commit 6dee26b

Browse files
committed
Merge branch 'master' of https://github.com/cpp-lln-lab/CPP_BIDS
2 parents a29610e + 8e7153e commit 6dee26b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+539
-343
lines changed

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@
6161
"ideas",
6262
"test"
6363
]
64+
},
65+
{
66+
"login": "iqrashahzad14",
67+
"name": "iqrashahzad14",
68+
"avatar_url": "https://avatars.githubusercontent.com/u/75671348?v=4",
69+
"profile": "https://github.com/iqrashahzad14",
70+
"contributions": [
71+
"bug",
72+
"test"
73+
]
6474
}
6575
],
6676
"contributorsPerLine": 7,
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: BIDS validator
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: ['master']
9+
10+
env:
11+
OCTFLAGS: --no-gui --no-window-system --silent
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-20.04
16+
steps:
17+
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
fetch-depth: 1
22+
23+
- name: Make jsonread for octave
24+
run: |
25+
sudo apt-get -y -qq update
26+
sudo apt-get -y install octave
27+
sudo apt-get -y install liboctave-dev
28+
cd lib/JSONio
29+
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
30+
cd ..
31+
32+
- name: Update octave path
33+
run: |
34+
octave $OCTFLAGS --eval "addpath(pwd); savepath();"
35+
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
36+
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
37+
38+
- name: Install BIDS validator
39+
run: |
40+
sudo npm install -g bids-validator@1.6.2
41+
42+
- name: Create dummy dataset and validate it
43+
run: |
44+
cd tests/manualTests
45+
octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders

.github/workflows/check_markdown.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/check_md_links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
branches:
88
- master
99
pull_request:
10-
branches: '*'
10+
branches: ['*']
1111

1212
jobs:
1313
markdown-link-check:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@master
17-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
17+
- uses: gaurav-nelson/github-action-markdown-link-check@v1

.github/workflows/miss_hit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
branches:
66
- master
77
pull_request:
8-
branches: '*'
9-
8+
branches: ['*']
109
jobs:
1110
build:
1211

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: MOxUnit
1+
name: tests and coverage
22

33
on:
44
push:
55
branches:
66
- master
77
- dev
88
pull_request:
9-
branches: '*'
9+
branches: ['*']
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-20.04
1414
steps:
1515

1616
- uses: actions/checkout@v2
@@ -21,17 +21,18 @@ jobs:
2121
- name: Make jsonread for octave
2222
run: |
2323
sudo apt-get -y -qq update
24-
sudo apt-get -y install octave
24+
sudo apt-get -y install octave
2525
sudo apt-get -y install liboctave-dev
2626
cd lib/JSONio
2727
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
28-
# cd ../..
2928
3029
- name: MOxUnit Action
31-
uses: joergbrech/moxunit-action@v1.1
30+
uses: joergbrech/moxunit-action@master
3231
with:
33-
tests: tests
34-
src: src
32+
tests: tests # files or directories containing the MOxUnit test cases
33+
src: src # directories to be added to the Octave search path before running the tests.
34+
ext: tests/utils # External resources to add to the search put (excluded from coverage)
35+
# data: # Directory for test data
3536
with_coverage: true
3637
cover_xml_file: coverage.xml
3738

.pre-commit-config.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
repos:
2+
3+
- repo: local
4+
5+
hooks:
6+
7+
- id: mh_version
8+
name: mh_version
9+
entry: mh_style
10+
args: [-v]
11+
verbose: true
12+
language: python
13+
additional_dependencies: [miss_hit_core]
14+
15+
# - id: mh_style
16+
# name: mh_style
17+
# entry: mh_style
18+
# args: [--process-slx, --fix]
19+
# files: ^(.*\.(m|slx))$
20+
# language: python
21+
# additional_dependencies: [miss_hit_core]
22+
23+
# - id: mh_metric
24+
# name: mh_metric
25+
# entry: mh_metric
26+
# args: [--ci]
27+
# files: ^(.*\.(m|slx))$
28+
# language: python
29+
# additional_dependencies: [miss_hit_core]
30+
31+
# - id: mh_lint
32+
# name: mh_lint
33+
# entry: mh_lint
34+
# files: ^(.*\.(m|slx))$
35+
# language: python
36+
# additional_dependencies: [miss_hit]
37+
38+
- repo: https://github.com/pre-commit/pre-commit-hooks
39+
rev: v4.2.0
40+
hooks:
41+
- id: trailing-whitespace
42+
- id: end-of-file-fixer
43+
- id: check-yaml
44+
- id: check-added-large-files

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ formats:
2323
python:
2424
version: 3.7
2525
install:
26-
- requirements: requirements.txt
26+
- requirements: requirements.txt

.remarkrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)