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

[ci] reverted changes, as it was not worth the time.

IPython notebooks have to be tested manually for now.
parent 9318ef5b
No related branches found
No related tags found
No related merge requests found
Pipeline #35938 passed
...@@ -47,10 +47,6 @@ package: ...@@ -47,10 +47,6 @@ 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,27 +47,4 @@ if __name__ == "__main__": ...@@ -47,27 +47,4 @@ if __name__ == "__main__":
] ]
) )
if system() == "Linux": check_call([python_venv_executable(), "-m", "pytest", "--junitxml=report.xml"])
check_call(
[
python_venv_executable(),
"-m",
"pytest",
"--junitxml=report.xml",
"--cov " + str(Path("src").resolve()),
"--cov-report xml",
]
)
# check_call([python_venv_executable(), "-m", "coverage xml"])
else:
check_call(
[
python_venv_executable(),
"-m",
"pytest",
"--junitxml=report.xml",
"--ignore "
+ str(Path("tests/robofish/io/test_examples.py").resolve())
+ "::test_example_basic_ipynb",
]
)
...@@ -27,7 +27,14 @@ def test_example_basic(): ...@@ -27,7 +27,14 @@ def test_example_basic():
path.unlink() path.unlink()
def test_example_basic_ipynb(): # This test can be executed manually. The CI/CD System has issues with testbook.
def manual_test_example_basic_ipynb():
# Executing the notebook should not lead to an exception # Executing the notebook should not lead to an exception
with testbook(str(ipynb_path), execute=True) as tb: with testbook(str(ipynb_path), execute=True) as tb:
pass pass
if __name__ == "__main__":
test_example_readme()
test_example_basic()
manual_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