File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 46
46
with :
47
47
cache-name : julia-cache;workflow=${{ github.workflow }};version=${{ matrix.version }};os=${{ matrix.os }};runtime=${{ matrix.runtime }};assertions=${{ matrix.assertions }}
48
48
include-matrix : false
49
+ - name : " Run Tests to warm cache"
50
+ run : |
51
+ import Pkg
52
+ Pkg.Registry.update()
53
+ Pkg.test()
54
+ shell : julia --color=yes --depwarn=yes --project=. {0}
55
+ env :
56
+ JULIA_PKG_SERVER_REGISTRY_PREFERENCE : eager
57
+ ENABLE_PJRT_COMPATIBILITY : 1
58
+ REACTANT_TEST_GROUP : " none"
59
+ XLA_FLAGS : " --xla_force_host_platform_device_count=12"
60
+ JULIA_DEBUG : " Reactant,Reactant_jll"
61
+
49
62
- name : Warm cache
50
63
run : |
51
64
import Pkg
Original file line number Diff line number Diff line change 6
6
7
7
const REACTANT_TEST_GROUP = lowercase (get (ENV , " REACTANT_TEST_GROUP" , " all" ))
8
8
9
+ # this is for the CI to precompile everything before running tests
10
+ if REACTANT_TEST_GROUP == " none"
11
+ println (" Skipping all tests as REACTANT_TEST_GROUP is set to 'none'" )
12
+ exit (0 )
13
+ end
14
+
15
+
9
16
@testset " Reactant.jl Tests" begin
10
17
if REACTANT_TEST_GROUP == " all" || REACTANT_TEST_GROUP == " core"
11
18
if Sys. isapple () && haskey (Reactant. XLA. global_backend_state. clients, " metal" )
You can’t perform that action at this time.
0 commit comments