@@ -13,82 +13,112 @@ jobs:
1313 linux :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v4
17- - name : Set up Python 3.10
18- uses : actions/setup-python@v5
19- with :
20- python-version : 3.10
21- - name : Install dependencies
22- run : |
23- python -m pip install --upgrade pip
24- pip install wheel pytest
25- pip install .[deepcell,astir]
26- - name : Test with pytest
27- run : |
28- # Test package
29- python -m pytest imc/
30-
31- # Run pipeline
32- mkdir -p imctest
33- cd imctest
34- imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
35-
36- # List output files
37- ls -l processed/
38- ls -l processed/${SAMPLE}
39- ls -l results/phenotyping
40- - name : Cache resources
41- id : cache-resources
42- uses : actions/cache@v4
43- with :
44- path : /home/$USER/.imc
45- key : imc-resources-linux
16+ - uses : actions/checkout@v4
17+
18+ - name : Set up Python 3.10
19+ uses : actions/setup-python@v5
20+ with :
21+ python-version : ' 3.10'
22+
23+ - name : Cache pip packages
24+ uses : actions/cache@v4
25+ with :
26+ path : ~/.cache/pip
27+ key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
28+
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip setuptools wheel
32+
33+ # Core scientific stack (pin to 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"
37+
38+ # Core dependencies for IMC and 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" "urlpath>=1.2.0" "PyYAML>=6.0"
43+
44+ # Optional backends used in your environment
45+ pip install "astir==0.1.5" "DeepCell==0.12.6"
46+
47+ # Finally install your package
48+ pip install -e .
49+
50+ - name : Test with pytest
51+ run : |
52+ # Test package
53+ python -m pytest imc/
54+
55+ # Run pipeline
56+ mkdir -p imctest
57+ cd imctest
58+ imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
59+
60+ # List output files
61+ ls -l processed/
62+ ls -l results/phenotyping
63+
64+ - name : Cache resources
65+ id : cache-resources
66+ uses : actions/cache@v4
67+ with :
68+ path : /home/$USER/.imc
69+ key : imc-resources-linux
4670
4771 osx :
4872 runs-on : macos-latest
4973 steps :
50- - uses : actions/checkout@v4
51- - name : Set up Python 3.10
52- uses : actions/setup-python@v5
53- with :
54- python-version : 3.10
55- - name : Install dependencies
56- run : |
57- python -m pip install --upgrade pip setuptools wheel
58-
59- # Core scientific stack (pin to stable, binary-available builds)
60- pip install "numpy<2.0" "scipy>=1.11,<1.16" "pandas>=2.0,<3.0" "matplotlib>=3.7,<3.11" \
61- "scikit-image==0.19.3" "tifffile==2021.11.2" "networkx>=2.6,<3.0" \
62- "seaborn>=0.13,<0.14" "fastcluster==1.2.6"
63-
64- # Core dependencies for IMC and ecosystem
65- pip install "imctools>=2.1.8" "joblib>=1.2,<1.6" "leidenalg>=0.10.2" \
66- "python-louvain>=0.16" "scanpy>=1.9,<1.12" "bbknn>=1.6" \
67- "numpy-groupies>=0.9,<0.12" "parmap>=1.6,<2.0" \
68- "seaborn-extensions>=0.2.1" "outdated>=0.2.2" "ordered-set>=4.1.0" "urlpath>=1.2.0" "PyYAML>=6.0"
69-
70- # Optional backends used in your environment
71- pip install "astir==0.1.5" "DeepCell==0.12.6"
72-
73- # Finally install your package
74- pip install -e .
75- - name : Test with pytest
76- run : |
77- # Test package
78- python -m pytest imc/
79-
80- # Run example processing pipeline
81- mkdir -p imctest
82- cd imctest
83- imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
84-
85- # List output files
86- ls -l processed/
87- ls -l processed/${SAMPLE}
88- ls -l results/phenotyping
89- - name : Cache resources
90- id : cache-resources
91- uses : actions/cache@v4
92- with :
93- path : /home/$USER/.imc
94- key : imc-resources-osx
74+ - uses : actions/checkout@v4
75+
76+ - name : Set up Python 3.10
77+ uses : actions/setup-python@v5
78+ with :
79+ python-version : ' 3.10'
80+
81+ - name : Cache pip packages
82+ uses : actions/cache@v4
83+ with :
84+ path : ~/Library/Caches/pip
85+ key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
86+
87+ - name : Install dependencies
88+ run : |
89+ python -m pip install --upgrade pip setuptools wheel
90+
91+ # Core scientific stack
92+ pip install "numpy<2.0" "scipy>=1.11,<1.16" "pandas>=2.0,<3.0" "matplotlib>=3.7,<3.11" \
93+ "scikit-image==0.19.3" "tifffile==2021.11.2" "networkx>=2.6,<3.0" \
94+ "seaborn>=0.13,<0.14" "fastcluster==1.2.6"
95+
96+ # Core dependencies for IMC and ecosystem
97+ pip install "imctools>=2.1.8" "joblib>=1.2,<1.6" "leidenalg>=0.10.2" \
98+ "python-louvain>=0.16" "scanpy>=1.9,<1.12" "bbknn>=1.6" \
99+ "numpy-groupies>=0.9,<0.12" "parmap>=1.6,<2.0" \
100+ "seaborn-extensions>=0.2.1" "outdated>=0.2.2" "ordered-set>=4.1.0" "urlpath>=1.2.0" "PyYAML>=6.0"
101+
102+ pip install "astir==0.1.5" "DeepCell==0.12.6"
103+ pip install -e .
104+
105+ - name : Test with pytest
106+ run : |
107+ # Test package
108+ python -m pytest imc/
109+
110+ # Run example processing pipeline
111+ mkdir -p imctest
112+ cd imctest
113+ imc process https://zenodo.org/record/5018260/files/COVID19_brain_Patient03_ROI3_COVID19_olfactorybulb.txt?download=1
114+
115+ # List output files
116+ ls -l processed/
117+ ls -l results/phenotyping
118+
119+ - name : Cache resources
120+ id : cache-resources
121+ uses : actions/cache@v4
122+ with :
123+ path : /Users/runner/.imc
124+ key : imc-resources-osx
0 commit comments