forked from PrincetonUniversity/SPEC
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 943 Bytes
/
python_wrapper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: python_wrapper
on: [push, pull_request]
jobs:
python_wrapper-build:
runs-on: ubuntu-latest
name: python_wrapper build
steps:
- uses: actions/checkout@v2
# Python3 should be pre-installed on 'ubuntu-latest'
- name: Python version info
run: |
python3 --version
pip3 --version
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gfortran mpi-default-bin mpi-default-dev libhdf5-103 libhdf5-dev libfftw3-bin libfftw3-dev libopenblas0-openmp libopenblas-dev cmake ninja-build
pip3 install --user numpy f90nml scikit-build
pip3 install --user git+https://github.com/zhucaoxiang/f90wrap
- name: Build python_wrapper
run: |
python3 setup.py bdist_wheel
pip3 install --user dist/*.whl
- name: Test if installation is ok
run: |
python3 -c "import spec; print('success')"