Skip to content

Commit 275471e

Browse files
committed
fix split
1 parent e178164 commit 275471e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/base_test_workflow.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
required: false
1515
type: string
1616
default: ""
17+
pytest_args:
18+
required: false
19+
type: string
20+
default: ""
1721
napari:
1822
required: false
1923
type: string
@@ -90,7 +94,7 @@ jobs:
9094
pip list
9195
9296
- name: Test with tox PartSegImage
93-
run: python -m tox package/tests/test_PartSegImage ${{ inputs.tox_args }}
97+
run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSegImage ${{ inputs.pytest_args }}
9498
env:
9599
PYVISTA_OFF_SCREEN: True # required for opengl on windows
96100
NAPARI: ${{ inputs.napari }}
@@ -99,7 +103,7 @@ jobs:
99103
UV_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }}
100104

101105
- name: Test with tox PartSegCore
102-
run: python -m tox package/tests/test_PartSegCore ${{ inputs.tox_args }}
106+
run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSegCore ${{ inputs.pytest_args }}
103107
env:
104108
PYVISTA_OFF_SCREEN: True # required for opengl on windows
105109
NAPARI: ${{ inputs.napari }}
@@ -111,7 +115,7 @@ jobs:
111115
uses: aganders3/headless-gui@v2
112116
timeout-minutes: ${{ inputs.timeout }}
113117
with:
114-
run: python -m tox package/tests/test_PartSeg ${{ inputs.tox_args }}
118+
run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSeg ${{ inputs.pytest_args }}
115119
env:
116120
PYVISTA_OFF_SCREEN: True # required for opengl on windows
117121
NAPARI: ${{ inputs.napari }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
qt_backend: ${{ matrix.qt_backend }}
127127
pydantic: ${{ matrix.pydantic }}
128128
artifact_suffix: "-main"
129-
tox_args: "-- -v"
129+
pytest_args: "-v"
130130

131131
test_coverage:
132132
needs: download_data

0 commit comments

Comments
 (0)