Skip to content

Commit f6a1f57

Browse files
authored
Fix tests (#210)
* Fix tests * Pin cython * Type gooder * Install cython earlier * back back baaaaack * Update setup.py * Install centrosome branch * Update test_cellpose.yml * Update test_stardist.yml
1 parent c92b7df commit f6a1f57

3 files changed

Lines changed: 6 additions & 27 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ jobs:
4646
pip install wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
4747
pip install --upgrade pip setuptools wheel
4848
pip install numpy
49+
pip install git+https://github.com/CellProfiler/centrosome.git@cython3
4950
50-
test_basic_plugins:
51-
needs: build_cellprofiler
52-
- name: Install basic CellProfiler plugins (require )
51+
- name: Install basic CellProfiler plugins require
5352
run: |
5453
pip install -e .
5554
- name: Run basic plugin pipeline
@@ -62,19 +61,3 @@ jobs:
6261
sh ./tests/headless_test/test_run.sh "module histogrammatching" logfile
6362
sh ./tests/headless_test/test_run.sh "module pixelshuffle" logfile
6463
65-
test_cellpose_plugin:
66-
needs: build_cellprofiler
67-
- name: Run cellpose plugin pipeline
68-
run: |
69-
pip install -e .[cellpose]
70-
python -m cellprofiler -c -r -p ./tests/headless_test/4.2.5_plugins_test_pipeline_CELLPOSE.cppipe -i ./tests/headless_test/test_pipeline_img -o . --plugins-directory=./active_plugins --log-level=DEBUG 2>&1 | tee logfile
71-
sh ./tests/headless_test/test_run.sh "module runcellpose" logfile
72-
73-
test_stardist_plugin:
74-
needs: build_cellprofiler
75-
- name: Run stardist plugin pipeline
76-
run: |
77-
pip uninstall -y cellpose torch
78-
pip install -e .[stardist]
79-
python -m cellprofiler -c -r -p ./tests/headless_test/4.2.5_plugins_test_pipeline_STARDIST.cppipe -i ./tests/headless_test/test_pipeline_img -o . --plugins-directory=./active_plugins --log-level=DEBUG 2>&1 | tee logfile
80-
sh ./tests/headless_test/test_run.sh "module runstardist" logfile

.github/workflows/test_cellpose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build_cellprofiler:
12-
name: Build CellProfiler
12+
name: Test CellProfiler-Cellpose
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
@@ -46,10 +46,8 @@ jobs:
4646
pip install wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
4747
pip install --upgrade pip setuptools wheel
4848
pip install numpy
49+
pip install git+https://github.com/CellProfiler/centrosome.git@cython3
4950
50-
51-
test_cellpose_plugin:
52-
needs: build_cellprofiler
5351
- name: Run cellpose plugin pipeline
5452
run: |
5553
pip install -e .[cellpose]

.github/workflows/test_stardist.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build_cellprofiler:
12-
name: Build CellProfiler
12+
name: Test CellProfiler-Stardist
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
@@ -46,12 +46,10 @@ jobs:
4646
pip install wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
4747
pip install --upgrade pip setuptools wheel
4848
pip install numpy
49+
pip install git+https://github.com/CellProfiler/centrosome.git@cython3
4950
50-
test_stardist_plugin:
51-
needs: build_cellprofiler
5251
- name: Run stardist plugin pipeline
5352
run: |
54-
pip uninstall -y cellpose torch
5553
pip install -e .[stardist]
5654
python -m cellprofiler -c -r -p ./tests/headless_test/4.2.5_plugins_test_pipeline_STARDIST.cppipe -i ./tests/headless_test/test_pipeline_img -o . --plugins-directory=./active_plugins --log-level=DEBUG 2>&1 | tee logfile
5755
sh ./tests/headless_test/test_run.sh "module runstardist" logfile

0 commit comments

Comments
 (0)