Skip to content
Snippets Groups Projects
Commit 745be03a authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'pytest-html' into 'master'

Add pyhtml to tests and artifacts

See merge request !41
parents cc060471 ffe8c9f2
No related merge requests found
...@@ -12,3 +12,4 @@ _build ...@@ -12,3 +12,4 @@ _build
.cache .cache
_local_tmp _local_tmp
RELEASE-VERSION RELEASE-VERSION
test-report
...@@ -17,7 +17,7 @@ tests-and-coverage: ...@@ -17,7 +17,7 @@ tests-and-coverage:
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- mkdir public - mkdir public
- py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. -m "not longrun" - py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. -m "not longrun" --html test-report/index.html
tags: tags:
- docker - docker
- cuda - cuda
...@@ -26,6 +26,7 @@ tests-and-coverage: ...@@ -26,6 +26,7 @@ tests-and-coverage:
when: always when: always
paths: paths:
- coverage_report - coverage_report
- test-report
# Nightly test - runs "long run" jobs only # Nightly test - runs "long run" jobs only
test-longrun: test-longrun:
...@@ -38,7 +39,7 @@ test-longrun: ...@@ -38,7 +39,7 @@ test-longrun:
- export NUM_CORES=$(nproc --all) - export NUM_CORES=$(nproc --all)
- mkdir -p ~/.config/matplotlib - mkdir -p ~/.config/matplotlib
- echo "backend:template" > ~/.config/matplotlib/matplotlibrc - echo "backend:template" > ~/.config/matplotlib/matplotlibrc
- py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. - py.test -v -n $NUM_CORES --cov-report html --cov-report term --cov=. --html test-report/index.html
tags: tags:
- docker - docker
- cuda - cuda
...@@ -46,6 +47,7 @@ test-longrun: ...@@ -46,6 +47,7 @@ test-longrun:
artifacts: artifacts:
paths: paths:
- coverage_report - coverage_report
- test-report
# Minimal tests in windows environment # Minimal tests in windows environment
minimal-windows: minimal-windows:
......
...@@ -117,7 +117,16 @@ setup(name='pystencils', ...@@ -117,7 +117,16 @@ setup(name='pystencils',
'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx', 'doc': ['sphinx', 'sphinx_rtd_theme', 'nbsphinx',
'sphinxcontrib-bibtex', 'sphinx_autodoc_typehints', 'pandoc'], 'sphinxcontrib-bibtex', 'sphinx_autodoc_typehints', 'pandoc'],
}, },
tests_require=['pytest', 'pytest-cov', 'pytest-xdist', 'flake8', 'nbformat', 'nbconvert', 'ipython'], tests_require=['pytest',
'pytest-cov',
'pytest-html',
'ansi2html',
'pytest-xdist',
'flake8',
'nbformat',
'nbconvert',
'ipython'],
python_requires=">=3.6", python_requires=">=3.6",
cmdclass={ cmdclass={
'quicktest': SimpleTestRunner 'quicktest': SimpleTestRunner
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment