@@ -108,101 +108,3 @@ jobs:
108108 flags : unittests
109109 name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
110110 fail_ci_if_error : false
111-
112- jobs :
113- test : # tests for macOS
114- name : Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
115- runs-on : ${{ matrix.os }}
116- strategy :
117- matrix :
118- os : [macOS-latest]
119- python-version : [3.8, 3.9]
120-
121- steps :
122- - uses : actions/checkout@v1
123-
124- - name : Additional info about the build
125- shell : bash
126- run : |
127- uname -a
128- df -h
129- ulimit -a
130-
131- # More info on options: https://github.com/conda-incubator/setup-miniconda
132- - uses : conda-incubator/setup-miniconda@v2
133- with :
134- python-version : ${{ matrix.python-version }}
135- environment-file : devtools/conda-envs/test_env.yaml
136- channels : conda-forge,bioconda,defaults
137- activate-environment : test
138- auto-update-conda : false
139- auto-activate-base : false
140- show-channel-urls : true
141-
142- - name : Prepare OS
143- run : |
144- brew update
145- brew upgrade
146- brew install gcc
147- brew install ccache
148- brew install openblas
149- brew install lapack
150- brew install fftw
151- brew install mpich
152- brew install ninja
153-
154- - name : Install GROMACS 2022.2
155- shell : bash -l {0}
156- run : |
157- gcc --version
158- g++ --version
159- export CC=`which gcc`
160- export CXX=`which g++`
161-
162- cd $HOME && mkdir pkgs
163- wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-2022.2.tar.gz
164- tar zxf gromacs-2022.2.tar.gz
165- cd gromacs-2022.2 && mkdir build && cd build
166- cmake .. -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC -DCMAKE_INSTALL_PREFIX=$HOME/pkgs
167- make install
168- source $HOME/pkgs/bin/GMXRC
169- gmx --version
170-
171- - name : Install gmxapi
172- # conda setup requires this special shell
173- shell : bash -l {0}
174- run : |
175- source $HOME/pkgs/bin/GMXRC
176- python -m ensurepip --default-pip
177- pip install --upgrade pip setuptools wheel
178- pip install --upgrade cmake pybind11
179- python -m pip install --upgrade pip setuptools
180- pip install --upgrade mpi4py
181- pip install --no-cache-dir gmxapi
182-
183- - name : Install ensemble_md dependencies
184- # conda setup requires this special shell
185- shell : bash -l {0}
186- run : |
187- python -m pip install . --no-deps
188- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
189- conda list
190-
191- - name : Run tests
192-
193- # conda setup requires this special shell
194- shell : bash -l {0}
195-
196- run : |
197- pip install pytest
198- pip install pytest-cov
199- pytest -v --disable-pytest-warnings --cov=ensemble_md --cov-report=xml --color=yes ensemble_md/tests/
200-
201- - name : CodeCov
202- uses : codecov/codecov-action@v1
203- with :
204- file : ./coverage.xml
205- flags : unittests
206- name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
207- fail_ci_if_error : false
208-
0 commit comments