Skip to content

Commit

Permalink
add JETTest, test on 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Aug 2, 2021
1 parent b1bd4a6 commit dff978d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/Linux-UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
timeout-minutes: 60
strategy:
fail-fast: true

matrix:
julia-version: ['1.6', '1.7']

env:
CLIMATEMACHINE_SETTINGS_FIX_RNG_SEED: "true"

Expand All @@ -30,14 +32,14 @@ jobs:
- name: Set up Julia
uses: julia-actions/setup-julia@latest
with:
version: 1.6
version: ${{ matrix.julia-version }}

- name: Cache artifacts
uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884"
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
GaussQuadrature = "d54b0c1a-921d-58e0-8e36-89d8069c0969"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
JETTest = "a79fb612-4a80-4749-a9bd-c2faab13da61"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Expand Down
16 changes: 16 additions & 0 deletions test/recursive.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Test, JETTest

using ClimaCore.RecursiveApply

for x in [
1.0,
1.0f0,
(1.0, 2.0),
(1.0f0, 2.0f0),
(a = 1.0, b = (x1 = 2.0, x2 = 3.0)),
(a = 1.0f0, b = (x1 = 2.0f0, x2 = 3.0f0)),
]
@test_nodispatch 2 x
@test_nodispatch x x
@test_nodispatch RecursiveApply.rdiv(x, 3)
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Base: operator_associativity

include("recursive.jl")
include("data1d.jl")
include("data.jl")
include("grid.jl")
Expand Down

0 comments on commit dff978d

Please sign in to comment.