From e5d54765d3b26e060f5ce92d00dfab33e742726e Mon Sep 17 00:00:00 2001 From: Eric Neiva Date: Fri, 5 Jan 2024 19:30:11 +0100 Subject: [PATCH] Run tests for AlgoimUtils only in x86 --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++ test/AlgoimUtilsTests/runtests.jl | 14 ++++++------- test/runtests.jl | 2 -- 3 files changed, 42 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b047a8d..f316fd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,6 +70,41 @@ jobs: - run: | julia --color=yes --project=. --check-bounds=yes --depwarn=error -e ' (1,) .== 1; include("test/GridapEmbeddedTests/runtests.jl")' + algoimutils: + name: AlgoimUtils ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.8' + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@v1 + - run: | + julia --color=yes --project=. --check-bounds=yes --depwarn=error -e ' + using Pkg; Pkg.instantiate()' + - run: | + julia --color=yes --project=. --check-bounds=yes --depwarn=error -e ' + (1,) .== 1; include("test/AlgoimUtilsTests/runtests.jl")' docs: name: Documentation runs-on: ubuntu-latest diff --git a/test/AlgoimUtilsTests/runtests.jl b/test/AlgoimUtilsTests/runtests.jl index f775609..f24d881 100644 --- a/test/AlgoimUtilsTests/runtests.jl +++ b/test/AlgoimUtilsTests/runtests.jl @@ -2,18 +2,18 @@ module AlgoimTests using Test -@testset "AlgoimInterface" begin include("AlgoimInterfaceTests.jl") end +@time @testset "AlgoimInterface" begin include("AlgoimInterfaceTests.jl") end -@testset "QuadratureDegree" begin include("QuadratureDegreeTests.jl") end +@time @testset "QuadratureDegree" begin include("QuadratureDegreeTests.jl") end -@testset "DualQuadratures" begin include("DualQuadraturesTests.jl") end +@time @testset "DualQuadratures" begin include("DualQuadraturesTests.jl") end -@testset "PoissonAlgoim" begin include("PoissonAlgoimTests.jl") end +@time @testset "PoissonAlgoim" begin include("PoissonAlgoimTests.jl") end -@testset "ClosestPoint" begin include("ClosestPointTests.jl") end +@time @testset "ClosestPoint" begin include("ClosestPointTests.jl") end -@testset "VolumeConservation" begin include("VolumeConservationTests.jl") end +@time @testset "VolumeConservation" begin include("VolumeConservationTests.jl") end -@testset "Visualization" begin include("VisualizationTests.jl") end +@time @testset "Visualization" begin include("VisualizationTests.jl") end end # module \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 83cf4d2..8b1363f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -21,8 +21,6 @@ if QHULL_LOADED @time @testset "MomentFittedQuadratures" begin include("MomentFittedQuadraturesTests/runtests.jl") end - @time @testset "AlgoimUtils" begin include("AlgoimUtilsTests/runtests.jl") end - include(joinpath(@__DIR__,"..","examples","runexamples.jl")) else