From 132f9bb4ef44c319ac2057a772c6f771958f17f3 Mon Sep 17 00:00:00 2001 From: Shuhei Kadowaki Date: Fri, 22 Mar 2024 10:36:51 +0900 Subject: [PATCH] ci fix? --- .github/workflows/CI.yml | 7 ++++--- test/stage2_fwd.jl | 12 +++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 737e7ee3..26ff2678 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,7 +6,8 @@ on: push: branches: - main - tags: '*' + tags: + - '*' workflow_dispatch: jobs: test: @@ -19,12 +20,12 @@ jobs: version: - '1.10' - 'nightly' - os: + os: # FIXME - windows-latest - ubuntu-latest - macOS-latest - # FIXME - windows-latest arch: - x64 + allow_failure: [false] include: - version: 'nightly' allow_failure: true diff --git a/test/stage2_fwd.jl b/test/stage2_fwd.jl index 6bc48d08..34ae734d 100644 --- a/test/stage2_fwd.jl +++ b/test/stage2_fwd.jl @@ -6,8 +6,7 @@ module stage2_fwd @test sin′(1.0) == cos(1.0) end let sin′′ = Diffractor.dontuse_nth_order_forward_stage2(Tuple{typeof(mysin), Float64}, 2) - # This broke some time between 1.10 and 1.11-DEV.10001 - @test isa(sin′′, Core.OpaqueClosure{Tuple{Float64}, Float64}) broken=VERSION>=v"1.11-" + @test isa(sin′′, Core.OpaqueClosure{Tuple{Float64}, Float64}) @test sin′′(1.0) == -sin(1.0) end @@ -15,27 +14,26 @@ module stage2_fwd self_minus(a) = myminus(a, a) ChainRulesCore.@scalar_rule myminus(x, y) (true, -1) let self_minus′ = Diffractor.dontuse_nth_order_forward_stage2(Tuple{typeof(self_minus), Float64}) - # This broke some time between 1.10 and 1.11-DEV.10001 - @test isa(self_minus′, Core.OpaqueClosure{Tuple{Float64}, Float64}) broken=VERSION>=v"1.11-" + @test isa(self_minus′, Core.OpaqueClosure{Tuple{Float64}, Float64}) @test self_minus′(1.0) == 0. end ChainRulesCore.@scalar_rule myminus(x, y) (true, true) # frule for `x - y` let self_minus′ = Diffractor.dontuse_nth_order_forward_stage2(Tuple{typeof(self_minus), Float64}) # This broke some time between 1.10 and 1.11-DEV.10001 - @test isa(self_minus′, Core.OpaqueClosure{Tuple{Float64}, Float64}) broken=VERSION>=v"1.11-" + @test isa(self_minus′, Core.OpaqueClosure{Tuple{Float64}, Float64}) @test self_minus′(1.0) == 2. end myminus2(a, b) = a - b self_minus2(a) = myminus2(a, a) let self_minus2′ = Diffractor.dontuse_nth_order_forward_stage2(Tuple{typeof(self_minus2), Float64}) - @test isa(self_minus2′, Core.OpaqueClosure{Tuple{Float64}, Float64}) broken=VERSION>=v"1.11-" + @test isa(self_minus2′, Core.OpaqueClosure{Tuple{Float64}, Float64} @test self_minus2′(1.0) == 0. end ChainRulesCore.@scalar_rule myminus2(x, y) (true, true) # frule for `x - y` let self_minus2′ = Diffractor.dontuse_nth_order_forward_stage2(Tuple{typeof(self_minus2), Float64}) # This broke some time between 1.10 and 1.11-DEV.10001 - @test isa(self_minus2′, Core.OpaqueClosure{Tuple{Float64}, Float64}) broken=VERSION>=v"1.11-" + @test isa(self_minus2′, Core.OpaqueClosure{Tuple{Float64}, Float64}) @test self_minus2′(1.0) == 2. end