Skip to content

Commit c34a630

Browse files
committed
use github action for miss_hit linter
1 parent d0dc3dd commit c34a630

File tree

2 files changed

+39
-7
lines changed

2 files changed

+39
-7
lines changed

.github/workflows/miss_hit.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: miss_hit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
pull_request:
9+
branches: '*'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
fetch-depth: 1
22+
23+
- name: Set up Python 3.6
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: 3.6
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip setuptools
31+
pip3 install install miss_hit
32+
33+
- name: Miss_hit code quality
34+
run: |
35+
mh_metric . --ci
36+
37+
- name: Miss_hit code style
38+
run: |
39+
mh_style .

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ before_install:
3434
- travis_retry sudo apt-get -y install npm
3535
# Install BIDS-Validator
3636
- sudo npm install -g bids-validator
37-
# Install miss_hit linter
38-
- pip3 install miss_hit
3937

4038
install:
4139
# make octave file the JSONio submodule
@@ -54,11 +52,6 @@ jobs:
5452
- name: "BIDS validator: create and check dataset"
5553
script: octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders
5654

57-
- name: "miss_hit: checking code quality"
58-
script: mh_metric . --ci
59-
- name: "miss_hit: checking code style"
60-
script: mh_style .
61-
6255
- name: "Check markdown"
6356
language: node_js
6457
node_js:

0 commit comments

Comments
 (0)