Fix updating of PiecewiseConstantCoalescentModel #13
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: Testing | |
on: [push] | |
jobs: | |
build-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.7, 3.8, 3.9, '3.10'] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install GSL linux | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y libgsl0-dev | |
- name: Install GSL macos | |
if: matrix.os == 'macos-latest' | |
run: brew install gsl | |
- name: Checkout physher | |
uses: actions/checkout@v3 | |
with: | |
repository: 4ment/physher | |
path: physher | |
- name: Install physher | |
run: | | |
cmake -S physher/ -B physher/build -DBUILD_CPP_WRAPPER=on -DBUILD_TESTING=on | |
sudo cmake --build physher/build/ --target install | |
- name: Checkout torchtree | |
uses: actions/checkout@v3 | |
with: | |
repository: 4ment/torchtree | |
path: torchtree | |
- name: Install torchtree | |
run: | | |
python -m pip install --upgrade pip | |
pip install torchtree/ | |
- name: Checkout torchtree-physher | |
uses: actions/checkout@v3 | |
with: | |
path: | |
torchtree-physher | |
- name: Install torchtree-physher | |
working-directory: torchtree-physher | |
run: | | |
pip install .[test] | |
- name: Test with pytest | |
working-directory: torchtree-physher | |
run: | | |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | |
pytest |