Skip to content

Commit a87ace6

Browse files
committed
Updated CI tests
1 parent b6cc56b commit a87ace6

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
arch: ${{ matrix.arch }}
2626
- uses: julia-actions/cache@v2
2727
- uses: julia-actions/julia-buildpkg@v1
28-
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl poisson.jl validation.jl elasticity.jl
28+
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl poisson.jl validation.jl elasticity.jl lagrange_multipliers.jl
2929
tutorials_set_2:
3030
name: Tutorials2 ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
3131
runs-on: ${{ matrix.os }}
@@ -46,7 +46,7 @@ jobs:
4646
arch: ${{ matrix.arch }}
4747
- uses: julia-actions/cache@v2
4848
- uses: julia-actions/julia-buildpkg@v1
49-
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl p_laplacian.jl hyperelasticity.jl dg_discretization.jl fsi_tutorial.jl
49+
- run: cd test/; julia --project=.. --color=yes --check-bounds=yes runtests.jl p_laplacian.jl hyperelasticity.jl dg_discretization.jl fsi_tutorial.jl poisson_amr.jl
5050
tutorials_set_3:
5151
name: Tutorials3 ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
5252
runs-on: ${{ matrix.os }}

test/runtests.jl

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,17 @@ else
1717
end
1818

1919
for (title,filename) in files
20-
# Create temporal modules to isolate and protect test scopes
21-
tmpdir=mktempdir(;cleanup=true)
22-
filename_wo_extension=split(filename,".")[1]
23-
tmpmod = filename_wo_extension
24-
tmpfile = joinpath(tmpdir,tmpmod)
25-
isfile(tmpfile) && error("File $tmpfile already exists!")
26-
testpath = joinpath(@__DIR__,"../src", filename)
27-
open(tmpfile,"w") do f
28-
println(f, "# This file is automatically generated")
29-
println(f, "# Do not edit")
30-
println(f)
31-
println(f, "module $tmpmod include(\"$testpath\") end")
32-
end
33-
@time @testset "$title" begin include(tmpfile) end
20+
# Create temporal modules to isolate and protect test scopes
21+
tmpdir = mktempdir(;cleanup=true)
22+
tmpmod = split(filename,".")[1]
23+
tmpfile = joinpath(tmpdir,tmpmod)
24+
isfile(tmpfile) && error("File $tmpfile already exists!")
25+
testpath = joinpath(@__DIR__,"../src", filename)
26+
open(tmpfile,"w") do f
27+
println(f, "# This file is automatically generated")
28+
println(f, "# Do not edit")
29+
println(f)
30+
println(f, "module $tmpmod include(\"$testpath\") end")
31+
end
32+
@time @testset "$title" begin include(tmpfile) end
3433
end
35-
36-
# module fsi_tutorial
37-
# using Test
38-
# @time @testset "fsi_tutorial" begin include("../src/fsi_tutorial.jl") end
39-
# end # module

0 commit comments

Comments
 (0)