Skip to content

Commit

Permalink
Test Int->Float32 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Aug 9, 2023
1 parent d113627 commit 6266353
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-runtest@latest # Run for Int -> Float32
env:
INT2FLOAT: Float32
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
Expand Down
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
using Base.Broadcast: broadcastable
using BenchmarkTools
using Preferences

# Test Float32 value for int2float
if "INT2FLOAT" keys(ENV) && ENV["INT2FLOAT"] == "Float32"
chainrulescore_uuid = UUID("d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4")
set_preferences!(chainrulescore_uuid, "int2float" => "Float32")
end

using ChainRulesCore
using LinearAlgebra
using LinearAlgebra.BLAS: ger!, gemv!, gemv, scal!
Expand Down

0 comments on commit 6266353

Please sign in to comment.