@@ -37,59 +37,25 @@ jobs:
3737 path : ~/.ccache
3838 key : ccache-reset1-linux${{ matrix.variant }}hash-${{ github.sha }}
3939 restore-keys : ccache-reset1-linux${{ matrix.variant }}hash-
40- - name : Removed unused stuff
41- run : |
42- df -h
43- sudo rm -rf /usr/share/dotnet
44- sudo rm -rf /usr/local/lib/android
45- sudo rm -rf /opt/ghc
46- df -h
40+ - name : setup the CI environment
41+ uses : ./.github/actions/linux-setup
42+ with :
43+ ccache : true
44+ pytest-make : true
45+ boost-debug : ${{ contains( matrix.variant, '-debug-' ) }}
46+ mpi : ${{ contains( matrix.variant, '-mpi-' ) }}
47+
4748 - name : Set up Python
4849 uses : actions/setup-python@v5
4950 with :
50- python-version : 3.9
51- - name : Set paths
52- run : |
53- echo "$HOME/opt/bin" >> $GITHUB_PATH
54- # path required for pytest:
55- echo "$HOME/.local/bin" >> $GITHUB_PATH
56- echo "PYTHONPATH=$HOME/opt/lib/plumed/python:$PYTHONPATH" >> $GITHUB_ENV
57- echo "CPATH=$HOME/opt/include:$CPATH" >> $GITHUB_ENV
58- echo "INCLUDE=$HOME/opt/include:$INCLUDE" >> $GITHUB_ENV
59- echo "LIBRARY_PATH=$HOME/opt/lib:$LIBRARY_PATH" >> $GITHUB_ENV
60- echo "LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
61- - name : Install generic packages
62- run : |
63- sudo apt-get update -qq
64- sudo apt-get install -y libatlas-base-dev
65- sudo apt-get install -y libfftw3-dev
66- sudo apt-get install -y gsl-bin
67- sudo apt-get install -y libgsl0-dev
68- sudo apt-get install -y ccache
69- - name : Install system boost
70- if : ${{ ! contains( matrix.variant, '-debug-' ) }}
71- run : |
72- sudo apt-get install -y libboost-serialization-dev
73- - name : Install boost with debug flags
74- if : contains( matrix.variant, '-debug-' )
75- run : |
76- .ci/install.boost
51+ # testing the oldest supported python version, see the "python" workflow for newer version
52+ python-version : " 3.10"
7753 - name : Install python packages needed for tests
7854 run : |
7955 python -m pip install --upgrade pip
80- pip install --user --extra-index-url=https://download.pytorch.org/whl/cpu \
81- Cython \
82- numpy \
83- pytest \
84- six \
85- pandas \
86- mdtraj \
87- MDAnalysis \
88- "torch>=2.7" \
89- "metatomic-torch>=0.1.3,<0.2" \
90- "featomic-torch==0.7.0"
91-
92- # torch 2.7 above is the first one to use cxx11 ABI for the PyPI wheels
56+ pip install --user -r ./python/requirements_build.txt
57+ pip install --user -r ./python/requirements_run.txt
58+ pip install --user -r ./.ci/pytorch/requirements.txt
9359
9460 - name : Configure libmetatomic & libtorch
9561 if : ${{ ! contains( matrix.variant, '-debug-' ) }} # the libraries on PyPI are not compiled with GLIBCXX_DEBUG
@@ -102,14 +68,11 @@ jobs:
10268
10369 # the flags above enable the use of both libmetatomic and libtorch
10470 echo "PLUMED_CONFIG=$PLUMED_CONFIG --enable-libmetatomic --enable-libtorch" >> $GITHUB_ENV
105- - name : Install Doxygen
71+ - name : Install tools for setting up the manuals
10672 if : contains( matrix.variant, '-doc-' )
10773 run : |
108- pip install requests
109- pip install PlumedToHTML
110- pip install networkx
111- pip install mkdocs-material
112- pip install python-markdown-math
74+ python -m pip install --upgrade pip
75+ pip install --user -r ./new-manual/requirements.txt
11376 sudo apt-get install -y graphviz
11477 sudo apt-get install -y doxygen-latex
11578 .ci/install.doxygen Release_1_13_2
@@ -150,14 +113,6 @@ jobs:
150113 # install MPI at last since it modifies CC and CXX
151114 if : contains( matrix.variant, '-mpi-' )
152115 run : |
153- sudo apt-get install -y libopenmpi-dev openmpi-bin
154- echo "CC=mpicc" >> $GITHUB_ENV
155- echo "CXX=mpic++" >> $GITHUB_ENV
156- echo "OMPI_MCA_btl_base_warn_component_unused=0" >> $GITHUB_ENV
157- echo "OMPI_MCA_btl_base_verbose=0" >> $GITHUB_ENV
158- echo "OMPI_MCA_plm=isolated" >> $GITHUB_ENV
159- echo "OMPI_MCA_btl_vader_single_copy_mechanism=none" >> $GITHUB_ENV
160- echo "OMPI_MCA_rmaps_base_oversubscribe=yes" >> $GITHUB_ENV
161116 pip install --user mpi4py
162117 python -c "import mpi4py"
163118 - name : Configure PLUMED
@@ -230,6 +185,7 @@ jobs:
230185 - name : Run python tests
231186 run : |
232187 cd python
188+ pip install --user pytest
233189 pytest -v
234190 - name : Build doc
235191 env :
0 commit comments