-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 957 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: build
on:
push:
pull_request:
schedule:
- cron: "34 8 * * 3" # 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 ~/deps ${{ matrix.python-version }}
- name: Test
run: |
export PATH=~/deps/bin:$PATH
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
flake8 ../pyext/src/
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}