Skip to content

Commit

Permalink
ci test codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
pudeIko committed Dec 30, 2024
1 parent c9747d8 commit c76233a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test_with_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jobs:
run: >
pytest --cov=$GITHUB_WORKSPACE --cov-append --cov-report=xml
--cov-config=.coveragerc piva/tests/dataloaders_test.py
# pytest --cov=$GITHUB_WORKSPACE --cov-report=xml
# piva/tests/dataloaders_test.py
- name: Test viewers - install prerequisites
run: >
Expand All @@ -79,8 +77,6 @@ jobs:
run: >
pytest --cov=$GITHUB_WORKSPACE --cov-append --cov-report=xml
--cov-config=.coveragerc piva/tests/viewers_test.py
# pytest --cov=$GITHUB_WORKSPACE --cov-report=xml
# piva/tests/viewers_test.py
- name: Upload coverage to Codecov
if: >
Expand Down
35 changes: 17 additions & 18 deletions piva/tests/viewers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,16 +658,15 @@ def test_viewers(self, qtbot: Any) -> None:
:param qtbot: object emulating a user
"""

print('elo')
# self.open_browser(qtbot)
self.open_browser(qtbot)
if CHECK_3D_Viewer_:
self.check_3Dv_sliders(qtbot)
self.check_3Dv_orientate_tab(qtbot)
self.check_3Dv_axes_tab(qtbot)
self.check_3Dv_image_tab(qtbot)

# # open first 2Dviewer
# self.open_2Dviewer(qtbot)
# open first 2Dviewer
self.open_2Dviewer(qtbot)

if CHECK_2D_Viewer_:
self.check_2dv_sliders(qtbot)
Expand Down Expand Up @@ -700,20 +699,20 @@ def test_viewers(self, qtbot: Any) -> None:
self.browser.data_viewers.keys()) is False
qtbot.wait(LONG_WT)

# # close first 2Dviewer
# qtbot.mouseClick(self.up_2dv.close_button, Qt.LeftButton)
# assert (self._2dv_title in
# self.browser.data_viewers.keys()) is False
# qtbot.wait(LONG_WT)
#
# if CHECK_K_SPC_CONV:
# self.check_kspace_conversion(qtbot)
# self.save_converted_viewer()
# qtbot.wait(LONG_WT * 3)
# self.check_BZ_contour(qtbot)
#
# qtbot.wait(LONG_WT * 5)
# self._3dv.close()
# close first 2Dviewer
qtbot.mouseClick(self.up_2dv.close_button, Qt.LeftButton)
assert (self._2dv_title in
self.browser.data_viewers.keys()) is False
qtbot.wait(LONG_WT)

if CHECK_K_SPC_CONV:
self.check_kspace_conversion(qtbot)
self.save_converted_viewer()
qtbot.wait(LONG_WT * 3)
self.check_BZ_contour(qtbot)

qtbot.wait(LONG_WT * 5)
self._3dv.close()


def change_spinBox(bot: Any, widget: Any, steps: int, key: Any,
Expand Down

0 comments on commit c76233a

Please sign in to comment.