Skip to content

Commit b5e2e24

Browse files
committed
ENH: Install PyImageJ dependencies in CI
1 parent db419aa commit b5e2e24

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/notebook-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,18 @@ jobs:
1111
- uses: actions/setup-python@v3
1212
with:
1313
python-version: '3.9'
14+
- uses: conda-incubator/setup-miniconda@v2
15+
with:
16+
python-version: '3.9'
17+
mamba-version: "*"
18+
channels: conda-forge,defaults
19+
channel-priority: true
20+
- name: Install PyImageJ example dependencies
21+
shell: bash -l {0}
22+
run: |
23+
mamba install --yes -c conda-forge pyimagej openjdk=8 pip
1424
- name: Install test dependencies
1525
run: |
16-
python -m pip install --upgrade pip
1726
pip install -e '.[test]'
1827
- name: Test notebooks
1928
run: |

examples/ConvertPyImageJDataset.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"outputs": [],
99
"source": [
1010
"import sys, os\n",
11-
"!conda install --yes --prefix {sys.prefix} -c conda-forge pyimagej openjdk=8\n",
11+
"!conda install --yes --prefix {sys.prefix} -c conda-forge openjdk=8\n",
1212
"os.environ['JAVA_HOME'] = os.sep.join(sys.executable.split(os.sep)[:-2] + ['jre'])\n",
13-
"!{sys.executable} -m pip install spatial-image-multiscale matplotlib zarr"
13+
"!{sys.executable} -m pip install spatial-image-multiscale matplotlib zarr pyimagej"
1414
]
1515
},
1616
{

0 commit comments

Comments
 (0)