File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,9 @@ jobs:
161161 submodules : recursive
162162
163163 - name : Set up Julia
164- uses : julia-actions/setup-julia @v2
164+ uses : julia-actions/install-juliaup @v2
165165 with :
166- version : ${{ matrix.julia-version }}
166+ channel : ${{ matrix.julia-version }}
167167
168168 - name : Restore Stan
169169 uses : actions/cache@v4
@@ -182,17 +182,21 @@ jobs:
182182 - name : Check import
183183 run : |
184184 cd julia/
185+ julia --version
185186 julia --project=. -e "using Pkg; Pkg.instantiate()"
186187 julia --project=. -e "using BridgeStan"
187188
188189 - name : Run tests
189190 run : |
190- cd julia/
191- julia --project=. -t 2 -e "using Pkg; Pkg.test()"
192- julia --project=. example.jl
191+ julia --project=julia/ --color=yes -t 2 -e "using Pkg; Pkg.test()"
193192 env :
194193 BRIDGESTAN : ${{ github.workspace }}
195194
195+ - name : Run example
196+ run : |
197+ cd julia/
198+ julia --project=. example.jl
199+
196200 Rlang :
197201 needs : [build]
198202 runs-on : ${{matrix.os}}
Original file line number Diff line number Diff line change 314314
315315 model = load_test_model (" multi" )
316316 nt = Threads. nthreads ()
317+ @test nt > 1
317318
318319 R = 1000
319320 ld = Vector {Bool} (undef, R * 2 )
567568
568569 model = load_test_model (" ode_sundials" )
569570 nt = Threads. nthreads ()
571+ @test nt > 1
570572 seeds = rand (UInt32, nt)
571573
572574 x = zeros (Float64, 0 ) # model is gq-only
689691 out = @capture_out f ()
690692
691693 lines = split (out, " \n " )
692- @test lines[1 ] == " Hello from Julia"
693- @test lines[2 ] == " Hi from Stan!"
694- @test lines[3 ] == " theta = $theta "
694+ @test strip ( lines[1 ]) == " Hello from Julia"
695+ @test strip ( lines[2 ]) == " Hi from Stan!"
696+ @test strip ( lines[3 ]) == " theta = $theta "
695697end
You can’t perform that action at this time.
0 commit comments