Build Wheels #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
sudo apt-get update | |
sudo apt-get install -y libeigen3-dev libboost-all-dev | |
- name: Setup Cpp | |
uses: aminya/setup-cpp@v1 | |
with: | |
cmake: true | |
- name: Setup and Build IQTree | |
run: | | |
cd iqtree2 | |
git apply ../fpic-iqtree.patch | |
mkdir build && cd build | |
cmake -DIQTREE_FLAGS="single" -DBUILD_LIB=ON .. | |
make -j | |
cd ../.. | |
mv iqtree2/build/libiqtree2.a pyiqtree/libiqtree/ | |
- name: Build and Install PyIQTree | |
run: pip install ".[dev]" | |
- name: Test | |
run: | | |
pytest tests/test_RF_distance.py | |
pytest tests/test_generate_random_tree_file.py |