Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hossein Rafipoor
fsl_mrs
Commits
a43af8fe
Commit
a43af8fe
authored
Sep 02, 2020
by
William Clarke
Browse files
Add tests to ci, allow failure of flake8 currently.
parent
3df6cf7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a43af8fe
...
...
@@ -3,12 +3,19 @@ image: python:3.7-slim-buster
before_script
:
-
python --version
-
pip install -r requirements.txt
-
pip install flake8
-
pip install flake8
pytest
stages
:
-
Static Analysis
-
Test
flake8
:
stage
:
Static Analysis
allow_failure
:
true
script
:
-
flake8 --max-line-length=120 fsl_mrs
\ No newline at end of file
-
flake8 --max-line-length=120 fsl_mrs
pytest
:
stage
:
Test
script
:
-
pytest fsl_mrs/tests
\ No newline at end of file
fsl_mrs/tests/test_utils_results.py
View file @
a43af8fe
...
...
@@ -11,7 +11,7 @@ import numpy as np
# Set up some synthetic data to use
@
fixture
(
scope
=
'module'
)
def
data
():
noiseCov
=
0.01
noiseCov
=
0.
0
01
amplitude
=
np
.
asarray
([
0.5
,
0.5
,
1.0
])
*
10
chemshift
=
np
.
asarray
([
3.0
,
3.05
,
2.0
])
-
4.65
lw
=
[
10
,
10
,
10
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment