Skip to content

Commit

Permalink
changed CI to do large file testing
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Feb 26, 2024
1 parent 25bbb11 commit 8b0b8d3
Show file tree
Hide file tree
Showing 3 changed files with 22,743 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,30 @@ jobs:
with:
path: grib_utils

- name: cache-data
id: cache-data
uses: actions/cache@v4
with:
path: ~/data
key: data-developer-1

- name: build-grib_utils
run: |
cd grib_utils
mkdir build && cd build
ls -l ~/jasper/lib
export LD_LIBRARY_PATH=/home/runner/jasper/lib
export PATH="~/g2c/bin:$PATH"
cmake -DENABLE_DOCS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="~/bacio;~/jasper;~/ip;~/w3emc;~/g2;~/g2c" -DCMAKE_Fortran_FLAGS="-fprofile-arcs -ftest-coverage -O0 -Wall" -DCMAKE_C_FLAGS="-fprofile-arcs -ftest-coverage -O0 -Wall" -DG2C_COMPARE=ON ..
cmake -DFTP_LARGE_TEST_FILES=ON -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH="~/bacio;~/jasper;~/ip;~/w3emc;~/g2;~/g2c" -DCMAKE_Fortran_FLAGS="-fprofile-arcs -ftest-coverage -O0 -Wall" -DCMAKE_C_FLAGS="-fprofile-arcs -ftest-coverage -O0 -Wall" -DG2C_COMPARE=ON ..
make -j2 VERBOSE=1
ctest --output-on-failure --rerun-failed --verbose
- name: cache-data
if: steps.cache-data.outputs.cache-hit != 'true'
run: |
mkdir ~/data
cp $GITHUB_WORKSPACE/grib_utils/build/tests/data/* ~/data
- name: generate-test-coverage
run: |
cd grib_utils/build
Expand Down
Loading

0 comments on commit 8b0b8d3

Please sign in to comment.