Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,30 @@ jobs:
os: ubuntu-latest
python-version: "3.12"
qt-api: "PyQt6"
qt-binding: ""
enable-coverage: "true"
extra-pytest-args: ""
- name: "py3.13-linux-qt6"
os: ubuntu-latest
python-version: "3.13"
qt-api: "PyQt6"
qt-binding: ""
enable-coverage: "false"
extra-pytest-args: ""
- name: "py3.11-linux-qt6"
os: ubuntu-latest
python-version: "3.11"
qt-api: "PyQt6"
qt-binding: ""
enable-coverage: "false"
extra-pytest-args: ""
- name: "py3.10-windows-qt6"
os: windows-latest
python-version: "3.10"
qt-api: "PyQt6"
qt-binding: ""
enable-coverage: "false"
extra-pytest-args: ""
- name: "py3.9-linux-qt5"
os: ubuntu-latest
python-version: "3.9"
qt-api: "PyQt5"
qt-binding: ""
enable-coverage: "false"
extra-pytest-args: "-W ignore::RuntimeWarning:networkx.utils.backends"
uses: ewoks-kit/.github/.github/workflows/python-tests.yml@main
Expand All @@ -61,7 +56,6 @@ jobs:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
qt-api: ${{ matrix.qt-api }}
qt-binding: ${{ matrix.qt-binding }}
enable-coverage: ${{ matrix.enable-coverage }}
pytest-args: >-
-v -ra -W error
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"ewokscore >=4.0.1",
"ewokscore >=5",
"orange-canvas-core",
"orange-widget-base>=4.13.0",
"importlib-resources; python_version<'3.9'",
Expand Down
9 changes: 8 additions & 1 deletion src/ewoksorange/tests/test_tutorials.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import warnings

import pytest
from ewokscore import execute_graph
from ewoksutils.exceptions import TaskInputWarning

from ..gui.workflows.owscheme import ows_to_ewoks
from ..orange_version import ORANGE_VERSION
Expand Down Expand Up @@ -145,6 +148,10 @@ def assert_mixed_tutorial_with_qt(ewoks_orange_canvas, filename):
def assert_mixed_tutorial_without_qt(filename):
"""Execute workflow after converting it to an ewoks workflow"""
graph = ows_to_ewoks(filename)
tasks = execute_graph(graph, output_tasks=True)

with warnings.catch_warnings():
warnings.simplefilter("ignore", TaskInputWarning)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue #408. Ignore for now.

tasks = execute_graph(graph, output_tasks=True)

results = tasks["2"].get_output_values()
assert results == {"result": 3}
Loading