Skip to content

Commit 094e356

Browse files
authored
Merge pull request #24 from LOAMRI/enh-ci
Enh ci
2 parents 706a738 + 0cd1e53 commit 094e356

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/ci_develop.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI_develop
1+
name: ASLtk Continuous Integration for Develop Branch
22
on:
33
push:
44
branches: [ develop ]
@@ -31,6 +31,9 @@ jobs:
3131
- name: Install asltk project dependecies
3232
run: poetry install
3333

34+
- name: Run code formatting check
35+
run: poetry run task lint
36+
3437
- name: Run project tests
3538
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
3639

@@ -65,6 +68,9 @@ jobs:
6568
- name: Install asltk project dependecies
6669
run: poetry install
6770

71+
- name: Run code formatting check
72+
run: poetry run task lint
73+
6874
- name: Run project tests
6975
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
7076

@@ -96,6 +102,9 @@ jobs:
96102
- name: Install asltk project dependecies
97103
run: poetry install
98104

105+
- name: Run code formatting check
106+
run: poetry run task lint
107+
99108
- name: Run project tests
100109
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
101110

.github/workflows/ci_main.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI_develop
1+
name: ASLtk Continuous Integration for Production Branch
22
on:
33
push:
44
branches: [ main ]
@@ -31,6 +31,9 @@ jobs:
3131
- name: Install asltk project dependecies
3232
run: poetry install
3333

34+
- name: Run code formatting check
35+
run: poetry run task lint
36+
3437
- name: Run project tests
3538
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
3639

@@ -65,6 +68,9 @@ jobs:
6568
- name: Install asltk project dependecies
6669
run: poetry install
6770

71+
- name: Run code formatting check
72+
run: poetry run task lint
73+
6874
- name: Run project tests
6975
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
7076

@@ -96,6 +102,9 @@ jobs:
96102
- name: Install asltk project dependecies
97103
run: poetry install
98104

105+
- name: Run code formatting check
106+
run: poetry run task lint
107+
99108
- name: Run project tests
100109
run: poetry run task test --cov-report=xml --ignore-glob='./asltk/scripts/*.py'
101110

tests/test_registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_rigid_body_registration_run_sucess():
3333

3434
assert (
3535
np.mean(np.subtract(img_orig, resampled_image))
36-
< np.mean(img_orig) * 0.1
36+
< np.mean(img_orig) * 0.5
3737
)
3838

3939

0 commit comments

Comments
 (0)