Merge pull request #1260 from LourensVeen/issue-1144-new-continuous-i… #12
This file contains hidden or 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: Test AMUSE sei | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/test-sei.yml | |
| - 'src/amuse_sei/**' | |
| pull_request: | |
| paths: | |
| - .github/workflows/test-sei.yml | |
| - 'src/amuse_sei/**' | |
| 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 | |
| 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<5' 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: Configure OpenMPI | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| mkdir -p "$HOME/.openmpi" | |
| echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf" | |
| echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf" | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Build sei | |
| run: | | |
| ./setup install amuse-sei | |
| - name: Ensure we test only the installed package | |
| run: | | |
| ./setup distclean | |
| - name: Test sei | |
| run: | | |
| ./setup test amuse-sei | |
| - name: Archive build logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: logs-${{ matrix.os }} | |
| path: ${{ github.workspace }}/support/logs/ | |
| if-no-files-found: warn |