-
Notifications
You must be signed in to change notification settings - Fork 112
77 lines (64 loc) · 1.89 KB
/
test-tupan.yml
File metadata and controls
77 lines (64 loc) · 1.89 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Test AMUSE tupan
on:
push:
paths:
- .github/workflows/test-tupan.yml
- 'src/amuse_tupan/**'
pull_request:
paths:
- .github/workflows/test-tupan.yml
- 'src/amuse_tupan/**'
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 tupan
run: |
./setup install amuse-tupan
- name: Ensure we test only the installed package
run: |
./setup distclean
- name: Test tupan
run: |
./setup test amuse-tupan
- 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