Compute 3d power (#68) #42
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
# main test workflow; ported from .travis.yaml | |
name: tests | |
on: | |
push: | |
branches: [ '*', $default-branch ] | |
pull_request: | |
branches: [ $default-branch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
# Install HDF5 to avoid failure of building h5py | |
sudo apt-get install libhdf5-dev | |
sudo apt install -y libgsl-dev libboost-test-dev | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install build pytest | |
- name: Build | |
run: | | |
git submodule update --init --recursive | |
python3 -m build | |
- name: Install | |
run: | |
python3 -m pip install --user dist/fake_spectra*.whl | |
- name: Python unit tests | |
run: pytest | |
- name: Boost unit tests | |
run: make test |