mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Adding vtk install to tests.
This commit is contained in:
parent
4c6798b3e0
commit
755d0a5a5f
2 changed files with 11 additions and 2 deletions
|
|
@ -53,8 +53,12 @@ class PlotTestHarness(TestHarness):
|
|||
outstr = sha512.hexdigest()
|
||||
|
||||
# test the voxel to vtk conversion script
|
||||
call(['../../../scripts/openmc-voxel-to-vtk'] +
|
||||
glob.glob('plot_4.h5'))
|
||||
try:
|
||||
import vtk
|
||||
call(['../../../scripts/openmc-voxel-to-vtk'] +
|
||||
glob.glob('plot_4.h5'))
|
||||
except:
|
||||
pass
|
||||
|
||||
return outstr
|
||||
|
||||
|
|
|
|||
|
|
@ -26,5 +26,10 @@ python tools/ci/travis-install.py
|
|||
# Install Python API in editable mode
|
||||
pip install -e .[test]
|
||||
|
||||
a=$(dpkg --compare-versions $(python --version | cut -d" " -f 2) lt 3.7.0)
|
||||
if [ $a -eq 0 ]; then
|
||||
pip install -e .[vtk]
|
||||
fi
|
||||
|
||||
# For uploading to coveralls
|
||||
pip install coveralls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue