File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+
47+ - name : Build framework
48+ run : |
49+ ./setup install amuse-framework
50+
51+ - name : Test framework
52+ env :
53+ OMPI_MCA_rmaps_base_oversubscribe : 1
54+ OMPI_MCA_btl_tcp_if_include : lo
55+ OMPI_MCA_pmix_server_max_wait : 10
56+ run : |
57+ ./setup test amuse-framework
58+
59+ - name : Save build logs
60+ run : |
61+ tar czf logs-${{ matrix.os }}.tar.gz support/logs
62+
63+ - name : Archive build logs
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : logs-${{ matrix.os }}.tar.gz
67+ path : logs-${{ matrix.os }}.tar.gz
Original file line number Diff line number Diff line change 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+
49+ - name : Build SeBa
50+ run : |
51+ ./setup install amuse-seba
52+
53+ - name : Test SeBa
54+ env :
55+ OMPI_MCA_rmaps_base_oversubscribe : 1
56+ OMPI_MCA_btl_tcp_if_include : lo
57+ OMPI_MCA_pmix_server_max_wait : 10
58+ run : |
59+ ./setup test amuse-seba
60+
61+ - name : Save build logs
62+ run : |
63+ tar czf logs-${{ matrix.os }}.tar.gz support/logs
64+
65+ - name : Archive build logs
66+ uses : actions/upload-artifact@v4
67+ with :
68+ name : logs-${{ matrix.os }}.tar.gz
69+ path : logs-${{ matrix.os }}.tar.gz
You can’t perform that action at this time.
0 commit comments