Skip to content

Add unit testing

Add unit testing #237

Workflow file for this run

# This is a CI workflow for the NCEPLIBS-w3emc project.
#
# This workflow builds for the Intel compiler.
#
# Ed Hartnett, 1/8/23
name: Intel
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
Intel:
runs-on: ubuntu-latest
strategy:
matrix:
compilers: ["oneapi", "classic"]
steps:
- name: "Install Intel"
uses: NOAA-EMC/ci-install-intel-toolkit@develop
with:
compiler-setup: ${{ matrix.compilers }}
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
bacio-version: v2.6.0
bufr-version: bufr_v12.0.0
key-prefix: Intel-
- name: "Checkout modified code"
uses: actions/checkout@v4
with:
path: w3emc
- name: "Build w3emc"
run: |
cmake -DCMAKE_PREFIX_PATH="$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bacio;$GITHUB_WORKSPACE/nceplibs/NCEPLIBS-bufr" -B w3emc/build -S w3emc
cmake --build w3emc/build --parallel 2 --verbose
- name: "Test w3emc"
run: ctest --test-dir w3emc/build --output-on-failure --rerun-failed --verbose