Skip to content

Commit 2465d89

Browse files
committed
Update test.yml
1 parent 2f2364e commit 2465d89

1 file changed

Lines changed: 45 additions & 52 deletions

File tree

.github/workflows/test.yml

Lines changed: 45 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Set up Python 3.10
19+
id: setup-python
1920
uses: actions/setup-python@v5
2021
with:
2122
python-version: '3.10'
@@ -28,41 +29,35 @@ jobs:
2829

2930
- name: Install dependencies
3031
run: |
31-
python -m pip install --upgrade pip setuptools wheel
32+
${{ env.pythonLocation }}/bin/python -m pip install --upgrade pip setuptools wheel
33+
${{ env.pythonLocation }}/bin/python -m pip install pytest pytest-cov
3234
33-
# Core scientific stack (stable, binary-available builds)
34-
pip install "numpy<2.0" "scipy>=1.11,<1.16" "pandas>=2.0,<3.0" "matplotlib>=3.7,<3.11" \
35-
"scikit-image==0.19.3" "tifffile==2021.11.2" "networkx>=2.6,<3.0" \
36-
"seaborn>=0.13,<0.14" "fastcluster==1.2.6"
35+
# Core scientific stack
36+
${{ env.pythonLocation }}/bin/pip install numpy<2.0 scipy>=1.11,<1.16 pandas>=2.0,<3.0 matplotlib>=3.7,<3.11 \
37+
scikit-image==0.19.3 tifffile==2021.11.2 networkx>=2.6,<3.0 \
38+
seaborn>=0.13,<0.14 fastcluster==1.2.6
3739
38-
# Core dependencies for IMC ecosystem
39-
pip install "imctools>=2.1.8" "joblib>=1.2,<1.6" "leidenalg>=0.10.2" \
40-
"python-louvain>=0.16" "scanpy>=1.9,<1.12" "bbknn>=1.6" \
41-
"numpy-groupies>=0.9,<0.12" "parmap>=1.6,<2.0" \
42-
"seaborn-extensions>=0.2.1" "outdated>=0.2.2" "ordered-set>=4.1.0" \
43-
"urlpath>=1.2.0" "PyYAML>=6.0"
40+
# Core dependencies
41+
${{ env.pythonLocation }}/bin/pip install imctools>=2.1.8 joblib>=1.2,<1.6 leidenalg>=0.10.2 \
42+
python-louvain>=0.16 scanpy>=1.9,<1.12 bbknn>=1.6 \
43+
numpy-groupies>=0.9,<0.12 parmap>=1.6,<2.0 \
44+
seaborn-extensions>=0.2.0 outdated>=0.2.2 ordered-set>=4.1.0 \
45+
urlpath>=1.2.0 PyYAML>=6.0
4446
4547
# Optional backends
46-
pip install "astir==0.1.5" "DeepCell==0.12.6"
48+
${{ env.pythonLocation }}/bin/pip install astir==0.1.5 DeepCell==0.12.6
4749
48-
# Install the local package
49-
pip install -e .
50+
${{ env.pythonLocation }}/bin/pip install -e .
5051
5152
- name: Test with pytest
5253
run: |
53-
python -m pytest imc/
54+
${{ env.pythonLocation }}/bin/python -m pytest imc/
5455
mkdir -p imctest
5556
cd imctest
5657
imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
5758
ls -l processed/
5859
ls -l results/phenotyping
5960
60-
- name: Cache resources
61-
id: cache-resources
62-
uses: actions/cache@v4
63-
with:
64-
path: /home/$USER/.imc
65-
key: imc-resources-linux
6661
6762
windows:
6863
runs-on: windows-latest
@@ -81,35 +76,38 @@ jobs:
8176
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
8277

8378
- name: Install dependencies
79+
shell: bash
8480
run: |
8581
python -m pip install --upgrade pip setuptools wheel
86-
pip install pytest pytest-cov
87-
pip install "numpy<2.0" "scipy>=1.11,<1.16" "pandas>=2.0,<3.0" "matplotlib>=3.7,<3.11" \
88-
"scikit-image==0.19.3" "tifffile==2021.11.2" "networkx>=2.6,<3.0" \
89-
"seaborn>=0.13,<0.14" "fastcluster==1.2.6"
90-
pip install "imctools>=2.1.8" "joblib>=1.2,<1.6" "leidenalg>=0.10.2" \
91-
"python-louvain>=0.16" "scanpy>=1.9,<1.12" "bbknn>=1.6" \
92-
"numpy-groupies>=0.9,<0.12" "parmap>=1.6,<2.0" \
93-
"seaborn-extensions>=0.2.1" "outdated>=0.2.2" "ordered-set>=4.1.0" \
94-
"urlpath>=1.2.0" "PyYAML>=6.0"
95-
pip install "astir==0.1.5" "DeepCell==0.12.6"
82+
python -m pip install pytest pytest-cov
83+
84+
pip install numpy<2.0 scipy>=1.11,<1.16 pandas>=2.0,<3.0 matplotlib>=3.7,<3.11
85+
pip install scikit-image==0.19.3 tifffile==2021.11.2 networkx>=2.6,<3.0
86+
pip install seaborn>=0.13,<0.14 fastcluster==1.2.6
87+
pip install imctools>=2.1.8 joblib>=1.2,<1.6 leidenalg>=0.10.2 python-louvain>=0.16
88+
pip install scanpy>=1.9,<1.12 bbknn>=1.6 numpy-groupies>=0.9,<0.12 parmap>=1.6,<2.0
89+
pip install seaborn-extensions>=0.2.0 outdated>=0.2.2 ordered-set>=4.1.0 urlpath>=1.2.0 PyYAML>=6.0
90+
pip install astir==0.1.5 DeepCell==0.12.6
9691
pip install -e .
9792
9893
- name: Test with pytest
94+
shell: bash
9995
run: |
10096
python -m pytest imc/
10197
mkdir imctest
10298
cd imctest
10399
imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
104-
dir processed
105-
dir results\phenotyping
100+
ls -l processed/
101+
ls -l results/phenotyping
102+
106103
107104
osx:
108105
runs-on: macos-latest
109106
steps:
110107
- uses: actions/checkout@v4
111108

112109
- name: Set up Python 3.9
110+
id: setup-python
113111
uses: actions/setup-python@v5
114112
with:
115113
python-version: '3.9'
@@ -122,31 +120,26 @@ jobs:
122120

123121
- name: Install dependencies
124122
run: |
125-
python -m pip install --upgrade pip setuptools wheel
126-
pip install pytest pytest-cov
127-
pip install "numpy<2.0" "scipy>=1.11,<1.16" "pandas>=2.0,<3.0" "matplotlib>=3.7,<3.11" \
128-
"scikit-image==0.19.3" "tifffile==2021.11.2" "networkx>=2.6,<3.0" \
129-
"seaborn>=0.13,<0.14" "fastcluster==1.2.6"
130-
pip install "imctools>=2.1.8" "joblib>=1.2,<1.6" "leidenalg>=0.10.2" \
131-
"python-louvain>=0.16" "scanpy>=1.9,<1.12" "bbknn>=1.6" \
132-
"numpy-groupies>=0.9,<0.12" "parmap>=1.6,<2.0" \
133-
"seaborn-extensions>=0.2.1" "outdated>=0.2.2" "ordered-set>=4.1.0" \
134-
"urlpath>=1.2.0" "PyYAML>=6.0"
135-
pip install "astir==0.1.5" "DeepCell==0.12.6"
136-
pip install -e .
123+
${{ env.pythonLocation }}/bin/python -m pip install --upgrade pip setuptools wheel
124+
${{ env.pythonLocation }}/bin/python -m pip install pytest pytest-cov
125+
126+
${{ env.pythonLocation }}/bin/pip install numpy<2.0 scipy>=1.11,<1.16 pandas>=2.0,<3.0 matplotlib>=3.7,<3.11 \
127+
scikit-image==0.19.3 tifffile==2021.11.2 networkx>=2.6,<3.0 \
128+
seaborn>=0.13,<0.14 fastcluster==1.2.6
129+
${{ env.pythonLocation }}/bin/pip install imctools>=2.1.8 joblib>=1.2,<1.6 leidenalg>=0.10.2 \
130+
python-louvain>=0.16 scanpy>=1.9,<1.12 bbknn>=1.6 \
131+
numpy-groupies>=0.9,<0.12 parmap>=1.6,<2.0 \
132+
seaborn-extensions==0.1.1 outdated>=0.2.2 ordered-set>=4.1.0 \
133+
urlpath>=1.2.0 PyYAML>=6.0
134+
${{ env.pythonLocation }}/bin/pip install astir==0.1.5 DeepCell==0.12.6
135+
${{ env.pythonLocation }}/bin/pip install -e .
137136
138137
- name: Test with pytest
139138
run: |
140-
python -m pytest imc/
139+
${{ env.pythonLocation }}/bin/python -m pytest imc/
141140
mkdir -p imctest
142141
cd imctest
143142
imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
144143
ls -l processed/
145144
ls -l results/phenotyping
146145
147-
- name: Cache resources
148-
id: cache-resources
149-
uses: actions/cache@v4
150-
with:
151-
path: /Users/runner/.imc
152-
key: imc-resources-osx

0 commit comments

Comments
 (0)