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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
###
# Run a docker-based test of tests.
#
# See https://github.com/Unidata/docker-nctests
# How https://github.com/Unidata/netcdf-test-action
name: Run Docker-Based Regression Testing
on: [pull_request,workflow_dispatch]
concurrency:
group: ${{ github.workflow}}-${{ github.head_ref }}
cancel-in-progress: true
permissions: {}
####
# Serial Testing
###
jobs:
netcdf-tests-s3-serial:
name: Docker-Based NetCDF-C and Fortran Regression Testing, S3 (Internal) and Zarr (Serial)
runs-on: ubuntu-latest
strategy:
matrix:
repo-type: [ 'c' ]
c-compiler: [ 'gcc', 'clang' ]
h5ver: [ '1.14.6' ]
fortran-branch: [ 'main' ]
buildsystem: [ 'both' ]
steps:
- uses: actions/checkout@v4
- name: Pull and Run netCDF Regression Tests
uses: Unidata/netcdf-test-action@v2
with:
repo-type: '${{ matrix.repo-type }}'
run-c: 'TRUE'
build-system: '${{ matrix.buildsystem }}'
hdf5-version: '${{ matrix.h5ver }}'
ctest-repeat: 3
c-compiler: '${{ matrix.c-compiler }}'
run-fortran: 'TRUE'
fortran-branch: '${{ matrix.fortran-branch }}'
autotools-c-options: '--enable-s3 --enable-s3-internal'
cmake-c-options: '-DNETCDF_ENABLE_S3_INTERNAL=TRUE'
netcdf-test-matrix-serial:
name: Docker-Based NetCDF-C, Fortran Regression Testing (Serial)
runs-on: ubuntu-latest
strategy:
matrix:
repo-type: [ 'c' ]
c-compiler: [ 'gcc', 'clang' ]
h5ver: [ '1.12.1', '1.14.6' ]
fortran-branch: [ 'v4.6.2', 'main' ]
buildsystem: [ 'both' ]
steps:
- uses: actions/checkout@v4
- name: Pull and Run netCDF Regression Tests
uses: Unidata/netcdf-test-action@v2
with:
repo-type: '${{ matrix.repo-type }}'
run-c: 'TRUE'
build-system: '${{ matrix.buildsystem }}'
hdf5-version: '${{ matrix.h5ver }}'
ctest-repeat: 3
c-compiler: '${{ matrix.c-compiler }}'
run-fortran: 'TRUE'
fortran-branch: '${{ matrix.fortran-branch }}'
###
# Testing some combinatorics for various options.
###
netcdf-test-matrix-oneoff:
needs: netcdf-test-matrix-serial
name: Docker-Based NetCDF-C, Fortran Regression Testing (tinyxml2-related one-off tests)
runs-on: ubuntu-latest
strategy:
matrix:
repo-type: [ 'c' ]
h5ver: [ '1.14.6' ]
c-compiler: [ 'gcc' ]
fortran-branch: [ 'main' ]
buildsystem: [ 'both' ]
steps:
- uses: actions/checkout@v4
- name: Pull and Run netCDF Regression Tests
uses: Unidata/netcdf-test-action@v2
with:
repo-type: '${{ matrix.repo-type }}'
run-c: 'TRUE'
build-system: '${{ matrix.buildsystem }}'
hdf5-version: '${{ matrix.h5ver }}'
ctest-repeat: 3
c-compiler: '${{ matrix.c-compiler }}'
run-fortran: 'TRUE'
fortran-branch: '${{ matrix.fortran-branch }}'
autotools-c-options: '--disable-dap --disable-dap4 --disable-libxml2 --disable-nczarr'
cmake-c-options: '-DNETCDF_ENABLE_LIBXML2=OFF -DNETCDF_ENABLE_DAP4=OFF -DNETCDF_ENABLE_NCZARR=OFF'
###
# Parallel Testing
###
netcdf-test-matrix-parallel:
needs: netcdf-test-matrix-serial
name: Docker-Based NetCDF-C, Fortran Regression Testing (Parallel)
runs-on: ubuntu-latest
strategy:
matrix:
repo-type: [ 'c' ]
h5ver: [ '1.14.6' ]
c-compiler: [ 'mpicc' ]
mpich-version: [ 'default' ]
fortran-branch: [ 'v4.6.2', 'main' ]
buildsystem: [ 'cmake', 'autotools' ]
steps:
- uses: actions/checkout@v4
- name: Pull and Run netCDF Regression Tests
uses: Unidata/netcdf-test-action@v2
with:
repo-type: '${{ matrix.repo-type }}'
run-c: 'TRUE'
build-system: '${{ matrix.buildsystem }}'
hdf5-version: '${{ matrix.h5ver }}'
ctest-repeat: 3
c-compiler: '${{ matrix.c-compiler }}'
mpich-version: '${{ matrix.mpich-version }}'
run-fortran: 'TRUE'
fortran-branch: '${{ matrix.fortran-branch }}'
###
# Test with Java
###
netcdf-tests-java:
needs: netcdf-test-matrix-serial
name: Docker-Based NetCDF-C, Java Regression Testing (Serial, Java Only)
runs-on: ubuntu-latest
strategy:
matrix:
repo-type: [ 'c' ]
c-compiler: [ 'gcc' ]
h5ver: [ '1.14.6' ]
build-system: [ 'cmake', 'autotools' ]
run-java: [ 'TRUE' ]
java-branch: [ 'maint-5.x' ]
steps:
- uses: actions/checkout@v4
- name: Pull and Run netCDF Regression Tests
uses: Unidata/netcdf-test-action@v2
with:
repo-type: '${{ matrix.repo-type }}'
run-c: 'FALSE'
run-fortran: 'FALSE'
build-system: '${{ matrix.build-system }}'
hdf5-version: '${{ matrix.h5ver }}'
ctest-repeat: 3
c-compiler: '${{ matrix.c-compiler }}'
run-java: '${{ matrix.run-java }}'
java-branch: '${{ matrix.java-branch }}'
|