Skip to content

Commit d99c8ae

Browse files
authored
Merge pull request #1260 from LourensVeen/issue-1144-new-continuous-integration
Issue 1144 new continuous integration
2 parents 5f9572f + 419f5f2 commit d99c8ae

85 files changed

Lines changed: 4338 additions & 147 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Test AMUSE aarsethzare
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/test-aarsethzare.yml
7+
- 'src/amuse_aarsethzare/**'
8+
pull_request:
9+
paths:
10+
- .github/workflows/test-aarsethzare.yml
11+
- 'src/amuse_aarsethzare/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies
43+
run: |
44+
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
45+
46+
- name: Configure OpenMPI
47+
if: ${{ matrix.os == 'ubuntu-latest' }}
48+
run: |
49+
mkdir -p "$HOME/.openmpi"
50+
echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf"
51+
echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
52+
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
58+
59+
- name: Build aarsethzare
60+
run: |
61+
./setup install amuse-aarsethzare
62+
63+
- name: Ensure we test only the installed package
64+
run: |
65+
./setup distclean
66+
67+
- name: Test aarsethzare
68+
run: |
69+
./setup test amuse-aarsethzare
70+
71+
- name: Archive build logs
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: logs-${{ matrix.os }}
76+
path: ${{ github.workspace }}/support/logs/
77+
if-no-files-found: warn

.github/workflows/test-adaptb.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Test AMUSE adaptb
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/test-adaptb.yml
7+
- 'src/amuse_adaptb/**'
8+
pull_request:
9+
paths:
10+
- .github/workflows/test-adaptb.yml
11+
- 'src/amuse_adaptb/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies
43+
run: |
44+
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
45+
46+
- name: Configure OpenMPI
47+
if: ${{ matrix.os == 'ubuntu-latest' }}
48+
run: |
49+
mkdir -p "$HOME/.openmpi"
50+
echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf"
51+
echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
52+
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
58+
59+
- name: Build adaptb
60+
run: |
61+
./setup install amuse-adaptb
62+
63+
- name: Ensure we test only the installed package
64+
run: |
65+
./setup distclean
66+
67+
- name: Test adaptb
68+
run: |
69+
./setup test amuse-adaptb
70+
71+
- name: Archive build logs
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: logs-${{ matrix.os }}
76+
path: ${{ github.workspace }}/support/logs/
77+
if-no-files-found: warn

.github/workflows/test-athena.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Test AMUSE athena
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/test-athena.yml
7+
- 'src/amuse_athena/**'
8+
pull_request:
9+
paths:
10+
- .github/workflows/test-athena.yml
11+
- 'src/amuse_athena/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies
43+
run: |
44+
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
45+
46+
- name: Configure OpenMPI
47+
if: ${{ matrix.os == 'ubuntu-latest' }}
48+
run: |
49+
mkdir -p "$HOME/.openmpi"
50+
echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf"
51+
echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
52+
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
58+
59+
- name: Build athena
60+
run: |
61+
./setup install amuse-athena
62+
63+
- name: Ensure we test only the installed package
64+
run: |
65+
./setup distclean
66+
67+
- name: Test athena
68+
run: |
69+
./setup test amuse-athena
70+
71+
- name: Archive build logs
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: logs-${{ matrix.os }}
76+
path: ${{ github.workspace }}/support/logs/
77+
if-no-files-found: warn

.github/workflows/test-bhtree.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Test AMUSE bhtree
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/test-bhtree.yml
7+
- 'src/amuse_bhtree/**'
8+
pull_request:
9+
paths:
10+
- .github/workflows/test-bhtree.yml
11+
- 'src/amuse_bhtree/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies
43+
run: |
44+
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
45+
46+
- name: Configure OpenMPI
47+
if: ${{ matrix.os == 'ubuntu-latest' }}
48+
run: |
49+
mkdir -p "$HOME/.openmpi"
50+
echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf"
51+
echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
52+
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
58+
59+
- name: Build bhtree
60+
run: |
61+
./setup install amuse-bhtree
62+
63+
- name: Ensure we test only the installed package
64+
run: |
65+
./setup distclean
66+
67+
- name: Test bhtree
68+
run: |
69+
./setup test amuse-bhtree
70+
71+
- name: Archive build logs
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: logs-${{ matrix.os }}
76+
path: ${{ github.workspace }}/support/logs/
77+
if-no-files-found: warn

.github/workflows/test-brutus.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Test AMUSE brutus
2+
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/test-brutus.yml
7+
- 'src/amuse_brutus/**'
8+
pull_request:
9+
paths:
10+
- .github/workflows/test-brutus.yml
11+
- 'src/amuse_brutus/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
defaults:
26+
run:
27+
shell: bash -el {0}
28+
29+
steps:
30+
- name: Set up conda
31+
uses: conda-incubator/setup-miniconda@v3
32+
with:
33+
auto-update-conda: true
34+
channels: conda-forge
35+
channel-priority: strict
36+
37+
- name: Show conda info
38+
run: |
39+
conda info
40+
conda list
41+
42+
- name: Install dependencies
43+
run: |
44+
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
45+
46+
- name: Configure OpenMPI
47+
if: ${{ matrix.os == 'ubuntu-latest' }}
48+
run: |
49+
mkdir -p "$HOME/.openmpi"
50+
echo "btl_tcp_if_include = lo" >>"$HOME/.openmpi/mca-params.conf"
51+
echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
52+
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
fetch-tags: true
58+
59+
- name: Build brutus
60+
run: |
61+
./setup install amuse-brutus
62+
63+
- name: Ensure we test only the installed package
64+
run: |
65+
./setup distclean
66+
67+
- name: Test brutus
68+
run: |
69+
./setup test amuse-brutus
70+
71+
- name: Archive build logs
72+
if: always()
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: logs-${{ matrix.os }}
76+
path: ${{ github.workspace }}/support/logs/
77+
if-no-files-found: warn

0 commit comments

Comments
 (0)