Skip to content

Added check to ensure that the nestor restraint weight is set to 0 #7

Added check to ensure that the nestor restraint weight is set to 0

Added check to ensure that the nestor restraint weight is set to 0 #7

Workflow file for this run

name: build
on:
push:
pull_request:
schedule:
- cron: "11 6 * * 5" # Run at a random time weekly
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["2.7", "3.9", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup conda and dependencies
run: |
sudo apt update
sudo apt-get install libopenmpi-dev
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov coverage
pip install -r requirements.txt
tools/setup_ci.sh ${{ matrix.python-version }}
- name: Test
run: |
eval "$(conda shell.bash hook)"
conda activate python${{ matrix.python-version }}
mkdir build && cd build
if test "${{ matrix.python-version }}" = "2.7" ; then PY2=on; else PY2=off; fi
cmake .. -DIMP_DIR=${CONDA_PREFIX}/lib/cmake/IMP -DUSE_PYTHON2=${PY2}
make
./setup_environment.sh pytest --cov=.. --cov-branch --cov-report=xml -v ../test/test_*.py
flake8 ../pyext/src/ ../test/
- uses: codecov/codecov-action@v1