Skip to content

Commit d066348

Browse files
committed
Update CI to new build system
1 parent 292a69f commit d066348

5 files changed

Lines changed: 142 additions & 236 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

.github/workflows/community-seba.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Test AMUSE framework
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
- macos-latest
22+
23+
defaults:
24+
run:
25+
shell: bash -el {0}
26+
27+
steps:
28+
- name: Set up conda
29+
uses: conda-incubator/setup-miniconda@v3
30+
with:
31+
auto-update-conda: true
32+
channels: conda-forge
33+
channel-priority: strict
34+
35+
- name: Show conda info
36+
run: |
37+
conda info
38+
conda list
39+
40+
- name: Install dependencies
41+
run: |
42+
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python 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'
43+
44+
- name: Checkout
45+
uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 100
48+
fetch-tags: true
49+
50+
- name: Build framework
51+
run: |
52+
./setup install amuse-framework
53+
54+
- name: Test framework
55+
env:
56+
OMPI_MCA_rmaps_base_oversubscribe: 1
57+
OMPI_MCA_btl_tcp_if_include: lo
58+
OMPI_MCA_pmix_server_max_wait: 10
59+
run: |
60+
./setup test amuse-framework
61+
62+
- name: Save build logs
63+
run: |
64+
tar czf logs-${{ matrix.os }}.tar.gz support/logs
65+
66+
- name: Archive build logs
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: logs-${{ matrix.os }}.tar.gz
70+
path: logs-${{ matrix.os }}.tar.gz

.github/workflows/test-seba.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# This workflow will install AMUSE and SeBa and run SeBa tests with a single version of Python
2+
3+
name: Build and test SeBa
4+
5+
on:
6+
push:
7+
paths:
8+
- src/amuse_seba
9+
pull_request:
10+
paths:
11+
- src/amuse_seba
12+
13+
jobs:
14+
test:
15+
name: Test SeBa on ${{ matrix.os }}
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
strategy:
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 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'
45+
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 100
50+
fetch-tags: true
51+
52+
- name: Build SeBa
53+
run: |
54+
./setup install amuse-seba
55+
56+
- name: Test SeBa
57+
env:
58+
OMPI_MCA_rmaps_base_oversubscribe: 1
59+
OMPI_MCA_btl_tcp_if_include: lo
60+
OMPI_MCA_pmix_server_max_wait: 10
61+
run: |
62+
./setup test amuse-seba
63+
64+
- name: Save build logs
65+
run: |
66+
tar czf logs-${{ matrix.os }}.tar.gz support/logs
67+
68+
- name: Archive build logs
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: logs-${{ matrix.os }}.tar.gz
72+
path: logs-${{ matrix.os }}.tar.gz

0 commit comments

Comments
 (0)