refactor #9288
Workflow file for this run
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: Installation | |
on: [push, merge_group, workflow_dispatch] | |
jobs: | |
archive: | |
name: Archive Install | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow | |
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | |
# install amici dependencies | |
- name: apt | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install -y \ | |
cmake \ | |
g++ \ | |
libatlas-base-dev \ | |
libboost-serialization-dev \ | |
libhdf5-serial-dev \ | |
swig | |
- name: Build suitesparse | |
run: | | |
scripts/buildSuiteSparse.sh | |
- name: Build sundials | |
run: | | |
scripts/buildSundials.sh | |
- name: Build AMICI | |
run: | | |
scripts/buildAmici.sh | |
- name: Install python archive | |
run: | | |
scripts/installAmiciArchive.sh | |
sdist_ubuntu: | |
name: sdist Install Ubuntu | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow | |
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | |
# install amici dependencies | |
- name: apt | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install -y \ | |
g++ \ | |
libatlas-base-dev \ | |
libboost-serialization-dev \ | |
libhdf5-serial-dev \ | |
swig | |
- name: Create AMICI sdist | |
run: | | |
scripts/buildSdist.sh | |
- name: Install python sdist | |
run: | | |
pip3 install -v --user $(ls -t python/sdist/dist/amici-*.tar.gz | head -1) | |
- name: Test import | |
run: | | |
python -m amici | |
sdist_macos: | |
name: sdist Install macos | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow | |
- run: echo "AMICI_DIR=$(pwd)" >> $GITHUB_ENV | |
# install amici dependencies | |
- name: homebrew | |
run: | | |
brew install hdf5 swig gcc cppcheck libomp boost \ | |
&& brew ls -v boost \ | |
&& brew ls -v libomp \ | |
&& echo LDFLAGS="-L/usr/local/lib/ -L/usr/local/Cellar/boost/1.81.0_1/lib/" >> $GITHUB_ENV \ | |
&& echo CPPFLAGS="-I /usr/local/Cellar/boost/1.81.0_1/include/" >> $GITHUB_ENV | |
- name: Create AMICI sdist | |
run: | | |
scripts/buildSdist.sh | |
- name: Install python sdist | |
run: | | |
pip3 install -v --user $(ls -t python/sdist/dist/amici-*.tar.gz | head -1) | |
- name: Test import | |
run: | | |
python -m amici |