Skip to content

Merge pull request #72 from qezlou/no-selfshielding #45

Merge pull request #72 from qezlou/no-selfshielding

Merge pull request #72 from qezlou/no-selfshielding #45

Workflow file for this run

# 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