moved to pyproject.toml and included py_spec.math #309
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: python_wrapper | |
on: [push, pull_request] | |
jobs: | |
python_wrapper-build: | |
runs-on: ubuntu-latest | |
name: python_wrapper build | |
steps: | |
- uses: actions/checkout@v4 | |
# Python3 should be pre-installed on 'ubuntu-latest' | |
- name: Python version info | |
run: | | |
python --version | |
pip --version | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install gfortran mpi-default-bin mpi-default-dev libhdf5-dev libfftw3-bin libfftw3-dev libopenblas-dev cmake ninja-build | |
pip install numpy f90nml scikit-build scipy meson meson-python | |
pip install git+https://github.com/zhucaoxiang/f90wrap@main_off | |
- name: Build python_wrapper | |
run: | | |
pip install . | |
- name: Test if installation is ok | |
run: | | |
python -c "import spec; print('success')" |