Skip to content

still trying to fix ci #24

still trying to fix ci

still trying to fix ci #24

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 f90wrap
- name: Build python_wrapper
run: |
pip install .
- name: Test if installation is ok
run: |
python -c "import spec; print('success')"
python_wrapper-conda-build:
runs-on: ubuntu-latest
name: python_wrapper conda build
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
# Or using the command conda env create --file environment.yml
with:
auto-update-conda: false
auto-activate-base: false
activate-environment: spec_wrapper
environment-file: environment.yml
- name: Echo conda environment
run: conda env export
- name: Test if installation is ok
run: |
python -c "import py_spec; print('py_spec success')"
python -c "import spec; print('success')"