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' pytest
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+ PRTE_MCA_rmaps_base_oversubscribe : 1
58+ PRTE_MCA_rmaps_default_mapping_policy : ' :oversubscribe'
59+ OMPI_MCA_btl_tcp_if_include : lo
60+ OMPI_MCA_pmix_server_max_wait : 10
61+ run : |
62+ ./setup test amuse-framework
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
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' pytest
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+ PRTE_MCA_rmaps_base_oversubscribe : 1
60+ PRTE_MCA_rmaps_default_mapping_policy : ' :oversubscribe'
61+ OMPI_MCA_btl_tcp_if_include : lo
62+ OMPI_MCA_pmix_server_max_wait : 10
63+ run : |
64+ ./setup test amuse-seba
65+
66+ - name : Save build logs
67+ run : |
68+ tar czf logs-${{ matrix.os }}.tar.gz support/logs
69+
70+ - name : Archive build logs
71+ uses : actions/upload-artifact@v4
72+ with :
73+ name : logs-${{ matrix.os }}.tar.gz
74+ path : logs-${{ matrix.os }}.tar.gz
You can’t perform that action at this time.
0 commit comments