Skip to content

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano committed Oct 22, 2021
1 parent b950a67 commit 330897a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
env:
OMP_NUM_THREADS: 2
QT_QPA_PLATFORM: offscreen
QT_DEBUG_PLUGINS: 1

jobs:
ci:
Expand All @@ -28,7 +27,7 @@ jobs:
shell: bash
run: |
apt update
apt install -y libglu1-mesa libfontconfig1
apt install -y libglu1-mesa libglib2.0-0 libfontconfig1
-
uses: actions/checkout@v2
-
Expand All @@ -42,4 +41,4 @@ jobs:
shell: bash
run: |
cd ${GITHUB_WORKSPACE}
pytest -s -v tests
pytest -v tests
3 changes: 0 additions & 3 deletions openmc_plotter/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
QColorDialog, QInputDialog, QWidget,
QGestureEvent)

print('importing openmc')
import openmc
print('importing openmc.lib')
import openmc.lib
print('done importing openmc.lib')

try:
import vtk
Expand Down
8 changes: 3 additions & 5 deletions tests/setup_test/test.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
print('Starting imports')
from openmc_plotter.main_window import MainWindow, _openmcReload
print('Done imports')

def test_window(qtbot):
#_openmcReload()
_openmcReload()

mw = MainWindow()
#mw.loadGui()
#mw.plotIm.figure.savefig("test.png")
mw.loadGui()
mw.plotIm.figure.savefig("test.png")
qtbot.addWidget(mw)

0 comments on commit 330897a

Please sign in to comment.