Skip to content

build

build #319

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: ["3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup conda and dependencies
run: |
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
cmake .. -DIMP_DIR=${CONDA_PREFIX}/lib/cmake/IMP
make
./setup_environment.sh pytest --cov=.. --cov-branch --cov-report=xml -v ../test/test_*.py ../test/medium_test_*.py test/*/*.py
flake8 ../pyext/src/ ../test/
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}