Skip to content

PyPI installation

PyPI installation #788

Workflow file for this run

name: PyPI installation
on:
workflow_dispatch:
schedule:
- cron: '48 4 * * *'
jobs:
pypi:
name: PyPI installation
strategy:
fail-fast: false
matrix:
python-version: [3.9, 3.9, '3.10']
os: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: apt
run: |
if [[ ${{ matrix.os }} == ubuntu* ]] ; then \
sudo apt-get update \
&& sudo apt-get install -y \
g++ \
libatlas-base-dev \
libhdf5-serial-dev \
swig
fi
- name: homebrew
run: |
if [[ ${{ matrix.os }} == macos* ]] ; then \
brew install hdf5 swig gcc libomp \
&& echo LDFLAGS="-L/usr/local/lib/" >> $GITHUB_ENV
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install --upgrade pip
- run: pip install -v amici
- run: python -c "from amici import _amici; print(_amici)"
- run: python -m amici