Skip to content

Commit e556e7b

Browse files
committed
WIP: Do not install cli extras in CI for Python 3.8
tifffile version not available.
1 parent 3b46300 commit e556e7b

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,41 @@ jobs:
1515
- uses: actions/checkout@v4
1616

1717
- name: Set up Python ${{ matrix.python-version }}
18-
if: ${{ matrix.os != 'macos-14' || matrix.package != '3.8' }}
18+
if: ${{ matrix.os != 'macos-14' || matrix.python-version != '3.8' }}
1919
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

2323
- name: Install dependencies
24-
if: ${{ matrix.os != 'macos-14' || matrix.package != '3.8' }}
24+
if: ${{ matrix.os != 'macos-14' && matrix.python-version != '3.8' }}
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -e ".[test,dask-image,itk,cli]"
28+
29+
- name: Install dependencies
30+
if: ${{ matrix.os != 'macos-14' && matrix.python-version == '3.8' }}
31+
run: |
32+
python -m pip install --upgrade pip
33+
python -m pip install -e ".[test,dask-image,itk]"
34+
python -m pip install itkwasm-image-io
35+
36+
- name: Install dependencies
37+
if: ${{ matrix.os == 'macos-14' && matrix.python-version != '3.8' }}
2538
run: |
2639
python -m pip install --upgrade pip
2740
python -m pip install -e ".[test,dask-image,itk,cli]"
2841
2942
- name: Test with pytest
30-
if: ${{ matrix.os != 'macos-14' || matrix.package != '3.8' }}
43+
if:
44+
${{ matrix.os != 'ubuntu-22.04' && (matrix.os != 'macos-14' ||
45+
matrix.python-version != '3.8') }}
3146
run: |
3247
pytest --junitxml=junit/test-results.xml
3348
3449
- name: Publish Test Report
35-
if: ${{ matrix.os != 'macos-14' || matrix.package != '3.8' }}
50+
if:
51+
${{ matrix.os != 'ubuntu-22.04' && (matrix.os != 'macos-14' ||
52+
matrix.python-version != '3.8') }}
3653
uses: mikepenz/action-junit-report@v2
3754
with:
3855
report_paths: "junit/test-results*.xml"

0 commit comments

Comments
 (0)