@@ -14,10 +14,10 @@ jobs:
1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- python-version : [ "3.9 " ]
17+ python-version : [ "3.10 " ]
1818 max-parallel : 5
1919 env :
20- coverage-on-version : " 3.9 "
20+ coverage-on-version : " 3.10 "
2121 use-mpi : True
2222 PIP_CONSTRAINT : pip_constraint.txt
2323 defaults :
@@ -42,13 +42,15 @@ jobs:
4242 run : |
4343 echo "numpy<2" >> $PIP_CONSTRAINT
4444 python3 -m pip install wheel setuptools numpy scipy click matplotlib pyyaml spglib rdkit==2024.3.3 flake8 pytest pytest-cov requests
45+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
4546
4647 - name : Install latest ASE from pypi
4748 run : |
4849 echo PIP_CONSTRAINT $PIP_CONSTRAINT
4950 python3 -m pip install ase
5051 echo -n "ASE VERSION "
5152 python3 -c "import ase; print(ase.__file__, ase.__version__)"
53+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
5254
5355 - name : Install intel-oneapi-mkl for phono3py
5456 run : |
6163 sudo apt update
6264 sudo apt install intel-oneapi-mkl
6365 sudo apt install intel-oneapi-mkl-devel
66+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
6467
6568 - name : Install phono3py from source
6669 run : |
@@ -90,16 +93,22 @@ jobs:
9093 cd phono3py
9194 python3 -m pip install -e . -vvv
9295 cd ..
96+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
9397
9498 - name : Install Quippy from PyPI
95- run : python3 -m pip install quippy-ase
99+ run : |
100+ python3 -m pip install quippy-ase
101+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
96102
97103 - name : Install xTB (before things that need pandas like MACE and wfl, since it will break pandas-numpy compatibility by downgrading numpy)
98104 run : |
105+ # force compatible numpy version
106+ conda install 'numpy<2'
99107 conda install -c conda-forge xtb-python
100108 python3 -m pip install typing-extensions
101109 # install pandas now to encourage compatible numpy version after conda regressed it
102110 python3 -m pip install pandas
111+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
103112
104113 - name : MACE
105114 run : |
@@ -136,9 +145,11 @@ jobs:
136145 fi
137146 echo "found torch version ${torch_version}+cpu, installing"
138147 python3 -m pip install torch==${torch_version}+cpu -f https://download.pytorch.org/whl/torch_stable.html
148+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
139149 echo "installing mace"
140150 python3 -m pip install git+https://github.com/ACEsuit/mace.git@main
141- python3 -c "import mace; print(mace.__file__)"
151+ python3 -c "import mace; print('mace file', mace.__file__)"
152+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
142153
143154 - name : Julia and ace fit
144155 run : |
@@ -148,19 +159,24 @@ jobs:
148159 # note that this hardwires a particular compatible ACE1pack version
149160 echo 'using Pkg; pkg"registry add https://github.com/JuliaRegistries/General"; pkg"registry add https://github.com/JuliaMolSim/MolSim.git"; pkg"add ACE1pack@0.0, ACE1, JuLIP, IPFitting, ASE"' > ace1pack_install.jl
150161 ${PWD}/julia-1.8.1/bin/julia ace1pack_install.jl
162+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
151163
152164 - name : Install wfl (expyre and universalSOAP are dependencies)
153- run : python3 -m pip install .
165+ run : |
166+ python3 -m pip install .
167+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
154168
155169 - name : Install Quantum Espresso
156170 run : |
157171 sudo apt-get install --no-install-recommends quantum-espresso
172+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
158173
159174 - name : Install MOPAC
160175 run : |
161- wget http ://openmopac.net /mopac-22.1.1-linux.tar.gz
176+ wget https ://github.com/ openmopac/mopac/releases/download/v22.1.1 /mopac-22.1.1-linux.tar.gz
162177 tar -xzvf mopac-22.1.1-linux.tar.gz
163178 echo $GITHUB_WORKSPACE/mopac-22.1.1-linux/bin >> $GITHUB_PATH
179+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
164180
165181 - name : Install buildcell
166182 run : |
@@ -172,6 +188,7 @@ jobs:
172188 mkdir -p $HOME/bin
173189 cp src/buildcell/src/buildcell $HOME/bin/
174190 cd ..
191+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
175192
176193 - name : Add buildcell to system path
177194 run : |
@@ -183,6 +200,7 @@ jobs:
183200 # this can eaily be turned off if needed
184201 conda install -c conda-forge mpi4py openmpi pytest-mpi
185202 python3 -m pip install mpipool
203+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
186204
187205 - name : Install and configure slurm and ExPyRe
188206 run : |
@@ -206,6 +224,7 @@ jobs:
206224 sinfo -s --long
207225 mkdir $HOME/.expyre
208226 cp .github/workflows_assets/config.json $HOME/.expyre
227+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
209228
210229 - name : Set up pw.x for running in wfl
211230 run : |
@@ -221,6 +240,7 @@ jobs:
221240
222241 echo 'post-espresso $HOME/.config/ase/config.ini'
223242 cat $HOME/.config/ase/config.ini
243+ python3 -c "import numpy; print('numpy version', numpy.__version__)"
224244
225245 - name : Lint with flake8
226246 run : |
@@ -234,6 +254,8 @@ jobs:
234254 run : |
235255 rm -rf $HOME/pytest_plain
236256 mkdir $HOME/pytest_plain
257+ # attempt to work around mkl/numpy issue
258+ export MKL_THREADING_LAYER=GNU
237259 #
238260 export EXPYRE_PYTEST_SYSTEMS=github
239261 export WFL_PYTEST_BUILDCELL=$HOME/bin/buildcell
@@ -247,6 +269,8 @@ jobs:
247269 run : |
248270 rm -rf $HOME/pytest_cov
249271 mkdir $HOME/pytest_cov
272+ # attempt to work around mkl/numpy issue
273+ export MKL_THREADING_LAYER=GNU
250274 #
251275 export EXPYRE_PYTEST_SYSTEMS=github
252276 export WFL_PYTEST_BUILDCELL=$HOME/bin/buildcell
0 commit comments