Skip to content

Commit 87aa9a8

Browse files
committed
ci: test on 1.12
1 parent 504f298 commit 87aa9a8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.buildkite/testing_luxtestutils.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
matrix:
2323
setup:
2424
julia:
25-
- "1.11"
25+
- "1.12"
2626

2727
env:
2828
SECRET_CODECOV_TOKEN: "jQ0BMTQgyZx7QGyU0Q2Ec7qB9mtE2q/tDu0FsfxvEG7/zOAGvXkyXrzIFFOQxvDoFcP+K2+hYZKMxicYdNqzr5wcxu505aNGN2GM3wyegAr+hO6q12bCFYx6qXzU9FLCCdeqINqn9gUSSOlGtWNFrbAlrTyz/D4Yo66TqBDzvaLL63FMnhCLaXW/zJt3hNuEAJaPY2O6Ze1rX2WZ3Y+i+s3uQ8aLImtoCJhPe8CRx+OhuYiTzGhynFfGntZ0738/1RN4gNM0S/hTC4gLE7XMVBanJpGh32rFaiDwW4zAyXKBrDkL3QA3MS1RvLTJxGJ085S16hCk0C4ddAhZCvIM9Q==;U2FsdGVkX1+bXdFeKMs5G79catOCyby2n07A2fg0FjVAvrjQLZ0yfvDS4paJiFikLkodho0khz2YALKb2Y0K6w=="

.github/workflows/CI_LuxTestUtils.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919
test:
2020
uses: ./.github/workflows/CommonCI.yml
2121
with:
22-
julia_version: "1.11"
22+
julia_version: "1.12"
2323
project: "lib/LuxTestUtils"

test/enzyme_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ end
127127
ps, st = dev(Lux.setup(rng, model))
128128
x = aType(x)
129129

130-
if LuxTestUtils.ENZYME_TESTING_ENABLED
130+
if LuxTestUtils.ENZYME_TESTING_ENABLED[]
131131
test_enzyme_gradients(model, x, ps, st)
132132
else
133133
@test_broken false
@@ -154,7 +154,7 @@ end
154154
st = dev(st)
155155
x = aType(x)
156156

157-
if LuxTestUtils.ENZYME_TESTING_ENABLED
157+
if LuxTestUtils.ENZYME_TESTING_ENABLED[]
158158
test_enzyme_gradients(model, x, ps, st)
159159
else
160160
@test_broken false

test/helpers/loss_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
∂x1 = ForwardDiff.derivative(Base.Fix2(LuxOps.xlogy, 3.0), 2.0)
2323
∂y1 = ForwardDiff.derivative(Base.Fix1(LuxOps.xlogy, 2.0), 3.0)
2424
∂x2, ∂y2 = Zygote.gradient(LuxOps.xlogy, 2.0, 3.0)
25-
if LuxTestUtils.ENZYME_TESTING_ENABLED
25+
if LuxTestUtils.ENZYME_TESTING_ENABLED[]
2626
((∂x3, ∂y3),) = Enzyme.autodiff(
2727
Enzyme.Reverse, LuxOps.xlogy, Active, Active(2.0), Active(3.0)
2828
)
@@ -38,7 +38,7 @@
3838
@test @inferred(LuxOps.xlogy(0, 1)) isa Number
3939
@jet LuxOps.xlogy(2, 3)
4040

41-
if LuxTestUtils.ENZYME_TESTING_ENABLED
41+
if LuxTestUtils.ENZYME_TESTING_ENABLED[]
4242
@test @inferred(
4343
Enzyme.autodiff(Enzyme.Reverse, LuxOps.xlogy, Active, Active(2.0), Active(3.0))
4444
) isa Any

test/helpers/training_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ end
8080
ongpu &&
8181
(ad isa AutoReverseDiff || ad isa AutoEnzyme || ad isa AutoMooncake) &&
8282
continue
83-
!LuxTestUtils.ENZYME_TESTING_ENABLED && ad isa AutoEnzyme && continue
83+
!LuxTestUtils.ENZYME_TESTING_ENABLED[] && ad isa AutoEnzyme && continue
8484

8585
ps, st = dev(Lux.setup(rng, model))
8686
tstate = Training.TrainState(model, ps, st, opt)

test/layers/basic_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ end
183183
@testitem "Dense StaticArrays" setup = [SharedTestSetup] tags = [:core_layers] begin
184184
using StaticArrays, Enzyme, ForwardDiff, ComponentArrays
185185

186-
if LuxTestUtils.ENZYME_TESTING_ENABLED
186+
if LuxTestUtils.ENZYME_TESTING_ENABLED[]
187187
N = 8
188188
d = Lux.Dense(N => N)
189189
ps = (; weight=randn(SMatrix{N,N,Float64}), bias=randn(SVector{N,Float64}))

0 commit comments

Comments
 (0)