Skip to content

Commit

Permalink
ENH: Install PyImageJ dependencies in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed May 5, 2022
1 parent 30151aa commit ae28672
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ jobs:
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.9'
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
- name: Install PyImageJ example dependencies
shell: bash -l {0}
run: |
mamba install --yes -c conda-forge pyimagej openjdk=8 pip
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions examples/ConvertPyImageJDataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"outputs": [],
"source": [
"import sys, os\n",
"!conda install --yes --prefix {sys.prefix} -c conda-forge pyimagej openjdk=8\n",
"!conda install --yes --prefix {sys.prefix} -c conda-forge openjdk=8\n",
"os.environ['JAVA_HOME'] = os.sep.join(sys.executable.split(os.sep)[:-2] + ['jre'])\n",
"!{sys.executable} -m pip install spatial-image-multiscale matplotlib zarr"
"!{sys.executable} -m pip install spatial-image-multiscale matplotlib zarr pyimagej"
]
},
{
Expand Down

0 comments on commit ae28672

Please sign in to comment.