Skip to content
Snippets Groups Projects
Commit ef7a2a3b authored by Andi Gerken's avatar Andi Gerken
Browse files

Removed ipython test from macos and windows. Added Coverage.

parent 1253bf04
Branches
Tags
No related merge requests found
Pipeline #35933 failed
...@@ -24,7 +24,6 @@ stages: ...@@ -24,7 +24,6 @@ stages:
artifacts: artifacts:
paths: paths:
- report.xml - report.xml
- .coverage
expire_in: 1 day expire_in: 1 day
script: script:
- ./ci/test.py - ./ci/test.py
...@@ -48,6 +47,10 @@ package: ...@@ -48,6 +47,10 @@ package:
"test: [centos, 3.8]": "test: [centos, 3.8]":
extends: .centos extends: .centos
artifacts:
paths:
- report.xml
cobertura: coverage.xml
<<: *test <<: *test
"test: [macos, 3.8]": "test: [macos, 3.8]":
......
...@@ -47,6 +47,7 @@ if __name__ == "__main__": ...@@ -47,6 +47,7 @@ if __name__ == "__main__":
] ]
) )
if system() == "Linux":
check_call( check_call(
[ [
python_venv_executable(), python_venv_executable(),
...@@ -54,6 +55,16 @@ if __name__ == "__main__": ...@@ -54,6 +55,16 @@ if __name__ == "__main__":
"pytest", "pytest",
"--junitxml=report.xml", "--junitxml=report.xml",
"--cov=src", "--cov=src",
"--cov-report=", ]
)
check_call([python_venv_executable(), "-m", "coverage xml"])
else:
check_call(
[
python_venv_executable(),
"-m",
"pytest",
"--junitxml=report.xml",
"--ignore tests/robofish/io/test_examples.py::test_example_basic_ipynb",
] ]
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment