Skip to content

minimal example works, but large one doesnt? #31

minimal example works, but large one doesnt?

minimal example works, but large one doesnt? #31

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')"
conda-build-ubuntu:
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:
miniconda-version: "latest"
environment-file: spec_env.yml
activate-environment: spec_wrapper
# - name: Echo conda environment
# run: conda env export
- name: Test if installation is ok
run: |
echo $CONDA_PREFIX
conda env export
pip freeze
python --version
python -c "import numpy; print('numpy')"
python -c "import spec; print('success')"
python -c "import py_spec; print('py_spec success')"
conda-test:
name: minimal conda example
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
environment-file: minimalenv.yml
activate-environment: test
- name: "Call conda install"
run: |
python --version
python -c "import numpy; print('numpy')"
conda-build-macos:
name: Ex2 Mac
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
python --version

Check failure on line 85 in .github/workflows/python_wrapper.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python_wrapper.yml

Invalid workflow file

You have an error in your yaml syntax on line 85
environment-file: minimalenv.yml
activate-environment: test
- name: Sh
shell: sh -l {0}
run: |
conda info
conda list
printenv | sort
- name: Bash
shell: bash -el {0}
run: |
conda info
conda list
printenv | sort
python --version
python -c "import numpy; print('numpy')"