From 4c857cd6ff1cd832e9d97eab6d009e189b2d9fa5 Mon Sep 17 00:00:00 2001 From: AlysonStahl-NOAA <166434581+AlysonStahl-NOAA@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:55:39 -0600 Subject: [PATCH] Added FTP tests to developer workflow --- .github/workflows/developer.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 852a5f79..4e51f579 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -90,6 +90,13 @@ jobs: with: path: wgrib2 + - name: cache-data + id: cache-data + uses: actions/cache@v3 + with: + path: ~/data + key: data-1 + - name: build run: | cd wgrib2 @@ -98,10 +105,16 @@ jobs: export CFLAGS='-Wall -g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0' export FCFLAGS='-Wall -g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0' export FFLAGS='-Wall -g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0' - cmake .. + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data make VERBOSE=1 ctest --verbose --output-on-failure --rerun-failed gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html &> /dev/null + + - name: cache-data + if: steps.cache-data.outputs != 'true' + run: | + mkdir ~/data + cp $GITHUB_WORKSPACE/wgrib2/build/tests/data/* ~/data - name: upload-test-coverage uses: actions/upload-artifact@v4