diff --git a/.github/workflows/base_test_workflow.yml b/.github/workflows/base_test_workflow.yml index a5f04e77e..a5bfde51e 100644 --- a/.github/workflows/base_test_workflow.yml +++ b/.github/workflows/base_test_workflow.yml @@ -94,28 +94,41 @@ jobs: pip list - name: Test with tox PartSegImage + if: ${{ inputs.napari == '' }} run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSegImage ${{ inputs.pytest_args }} env: PYVISTA_OFF_SCREEN: True # required for opengl on windows - NAPARI: ${{ inputs.napari }} BACKEND: ${{ inputs.qt_backend }} PIP_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} UV_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} - name: Test with tox PartSegCore + if: ${{ inputs.napari == '' }} run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSegCore ${{ inputs.pytest_args }} env: PYVISTA_OFF_SCREEN: True # required for opengl on windows - NAPARI: ${{ inputs.napari }} BACKEND: ${{ inputs.qt_backend }} PIP_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} UV_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} - name: Test with tox PartSeg + if: ${{ inputs.napari == '' }} uses: aganders3/headless-gui@v2 timeout-minutes: ${{ inputs.timeout }} with: run: python -m tox ${{ inputs.tox_args }} -- package/tests/test_PartSeg ${{ inputs.pytest_args }} + env: + PYVISTA_OFF_SCREEN: True # required for opengl on windows + BACKEND: ${{ inputs.qt_backend }} + PIP_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} + UV_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} + + - name: Test with tox all + if: ${{ inputs.napari != '' }} + uses: aganders3/headless-gui@v2 + timeout-minutes: ${{ inputs.timeout }} + with: + run: python -m tox ${{ inputs.tox_args }} -- ${{ inputs.pytest_args }} env: PYVISTA_OFF_SCREEN: True # required for opengl on windows NAPARI: ${{ inputs.napari }} @@ -123,6 +136,7 @@ jobs: PIP_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} UV_CONSTRAINT: ${{ inputs.napari == 'latest' && format('requirements/constraints_py{0}{1}.txt', inputs.python_version, inputs.pydantic ) || '' }} + - uses: actions/upload-artifact@v4 with: name: timing-report-${{ inputs.os }}-py-${{ inputs.python_version }}-${{ inputs.napari }}-${{ inputs.qt_backend }}-${{ inputs.coverage }}${{ inputs.artifact_suffix }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3576d539f..3f300b876 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -117,7 +117,7 @@ jobs: qt_backend: "PySide2" - os: "macos-14" qt_backend: "PySide2" - - os: macos-14 + - os: "macos-14" python_version: "3.9" with: test_data: True