From 1668424ec24fdd3826a77d952d3a028b0d05f5c4 Mon Sep 17 00:00:00 2001 From: Simone Silvestri <33547697+simone-silvestri@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:58:33 -0500 Subject: [PATCH] add tests to pipeline --- .buildkite/pipeline.yml | 14 +++++++++++--- src/DataWrangling/ECCO2.jl | 2 +- test/runtests.jl | 4 ++++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 6539ab68..f546981f 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -26,11 +26,19 @@ steps: - wait - - label: "Run all the tests" - key: "tests" + - label: "Run JRA55 tests" + key: "tests jra55" env: - CUDA_VISIBLE_DEVICES: "-1" + CUDA_VISIBLE_DEVICES: "-1" TEST_GROUP: "jra55" commands: - "julia --project -e 'using Pkg; Pkg.test()'" + - label: "Run ECCO2 tests" + key: "tests ecco2" + env: + CUDA_VISIBLE_DEVICES: "-1" + TEST_GROUP: "ecco2" + commands: + - "julia --project -e 'using Pkg; Pkg.test()'" + diff --git a/src/DataWrangling/ECCO2.jl b/src/DataWrangling/ECCO2.jl index 2e0ede2a..dfb68f24 100644 --- a/src/DataWrangling/ECCO2.jl +++ b/src/DataWrangling/ECCO2.jl @@ -84,7 +84,7 @@ function ecco2_field(variable_name; z = construct_vertical_interfaces(ds, depth_name) N = size(data) - # add the vertical halo for 3D fields + # add vertical halo for 3D fields halo = (horizontal_halo..., 1) LZ = Center diff --git a/test/runtests.jl b/test/runtests.jl index 2c9aeef9..ff6e0598 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -9,6 +9,10 @@ if test_group == :jra55 || test_group == :all include("test_jra55.jl") end +if test_group == :ecco2 || test_group == :all + include("test_ecco2.jl") +end + # Tests that we can download JRA55 utilities if test_group == :downloading || test_group == :all include("test_downloading.jl")