-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (45 loc) · 1.29 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on: [workflow_dispatch]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
submodules: "recursive"
# Setup env
- uses: "actions/setup-python@v5"
with:
python-version: "3.12"
- name: Installs for Python 3.12
run: |
python --version
pip install --upgrade pip wheel setuptools pybind11
- name: Setup Lib Dependencies
run: |
apt-get install -y libeigen3-dev libboost-all-dev
- name: Setup Cpp
uses: aminya/setup-cpp@v1
with:
cmake: true
- name: Setup IQTree
run: |
cd iqtree2
git apply ../fpic-iqtree.patch
mkdir build && cd build
cmake -DIQTREE_FLAGS="single" -DBUILD_LIB=ON ..
- name: Build IQTree
run: |
make -j
cd ../..
mv iqtree2/build/libiqtree2.a pyiqtree/libiqtree/
- name: Build PyIQTree
run: python setup.py build
- name: Install PyIQTree
run: python setup.py install
- name: Test
run: |
pytest tests/test_RF_distance.py
pytest tests/test_generate_random_tree_file.py