-
Notifications
You must be signed in to change notification settings - Fork 99
70 lines (66 loc) · 2.1 KB
/
community-seba.yml
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
# This workflow will install AMUSE and SeBa and run SeBa tests with a single version of Python
name: Build and test SeBa
on:
push:
paths:
- src/amuse/community/seba
pull_request:
paths:
- src/amuse/community/seba
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
mpi: [ 'mpich', 'openmpi']
python: [ 3.8 ]
java-version: [ '17' ]
name: Test AMUSE with ${{ matrix.mpi }}
steps:
- uses: actions/checkout@v4
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: ${{ matrix.java-version }}
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get install gfortran libopenblas-dev libhdf5-openmpi-dev libgsl0-dev cmake libfftw3-3 libfftw3-dev libmpfr6 libmpfr-dev
pip install numpy scipy matplotlib docutils mpi4py pytest pytest-timeout
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install amuse
run: |
pip install -e .
- name: build AMUSE framework
run: |
make framework
- name: build SeBa
run: |
make seba.code
- name: check installation
run: |
amusifier --get-amuse-configmk
pip list
- name: move build log
run: |
mv build.log build-${{ matrix.mpi }}-${{ matrix.python }}.log
- name: archive build log
uses: actions/upload-artifact@v4
with:
name: buildlog-${{ matrix.python }}-${{ matrix.mpi }}
path: build-${{ matrix.mpi }}-${{ matrix.python }}.log
- name: test seba
run: |
pytest --pyargs amuse.test.suite.codes_tests.test_seba -sv
env:
OMPI_MCA_rmaps_base_oversubscribe: 1
OMPI_MCA_btl_tcp_if_include: lo