Skip to content

Replace examples with those from the second edition of the AMUSE book #174

Replace examples with those from the second edition of the AMUSE book

Replace examples with those from the second edition of the AMUSE book #174

Workflow file for this run

name: Test AMUSE framework
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
channel-priority: strict
- name: Show conda info
run: |
conda info
conda list
- name: Install dependencies (Linux)
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
- name: Install dependencies (macOS)
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake mpich gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100
fetch-tags: true
- name: Build framework
run: |
./setup install amuse-framework
- name: Test framework
env:
OMPI_MCA_rmaps_base_oversubscribe: 1
PRTE_MCA_rmaps_base_oversubscribe: 1
PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
OMPI_MCA_mpi_yield_when_idle: 1
PRTE_MCA_mpi_yield_when_idle: 1
OMPI_MCA_btl_tcp_if_include: lo,eth0
PRTE_MCA_btl_tcp_if_include: lo,eth0
PRTE_MCA_if_include: lo,eth0
OMPI_MCA_pmix_server_max_wait: 10
run: |
./setup test amuse-framework
- name: Save build logs
run: |
tar czf logs-${{ matrix.os }}.tar.gz support/logs
- name: Archive build logs
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.os }}.tar.gz
path: logs-${{ matrix.os }}.tar.gz