Fix some python docs #135
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 and install the package | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel setuptools | |
sudo apt-get update && sudo apt-get install libboost-math-dev libnlopt-cxx-dev python3.8-dev | |
- name: Build baggianalysis and install it through pip | |
run: pip install . | |
- name: Check import from the command line | |
run: | | |
mkdir test-folder && pushd test-folder | |
python -c 'import baggianalysis' | |
popd | |