Skip to content

Commit

Permalink
split tests into two parts for parallel CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed May 26, 2021
1 parent adcd581 commit a16c00c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 22 deletions.
20 changes: 19 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
comment: false
# https://docs.codecov.io/docs/codecovyml-reference

# We have
# [number of parts] * [number of OS]
# 2 * 3
# parallel jobs in ci.yml
codecov:
notify:
after_n_builds: 6
comment:
after_n_builds: 6

coverage:
range: 70..95
round: down
precision: 2

github_checks:
annotations: false
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ on:
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.sbp_test }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -54,6 +54,9 @@ jobs:
- windows-latest
arch:
- x64
sbp_test:
- part1
- part2
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand All @@ -72,6 +75,9 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
PYTHON: ""
SBP_TEST: ${{ matrix.sbp_test }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197"
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
PolynomialBases = "c74db56a-226d-5e98-8bb0-a6049094aeea"
Expand Down
49 changes: 29 additions & 20 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
using Test

@time @testset "Periodic Operators" begin include("periodic_operators_test.jl") end
@time @testset "Non-Periodic Operators" begin include("SBP_operators_test.jl") end
@time @testset "Dissipation Operators" begin include("dissipation_operators_test.jl") end
@time @testset "Variable Coefficient Operators" begin include("var_coef_operators_test.jl") end
@time @testset "Banded Matrices" begin include("banded_matrices_test.jl") end
@time @testset "Fourier Operators" begin include("fourier_operators_test.jl") end
@time @testset "Fourier Operators 2D" begin include("fourier_operators_2d_test.jl") end
@time @testset "Legendre Operators" begin include("legendre_operators_test.jl") end
@time @testset "Sum of Operators" begin include("sum_of_operators_test.jl") end
@time @testset "Upwind Operators" begin include("upwind_operators_test.jl") end
@time @testset "Coupling" begin include("coupling_test.jl") end
@time @testset "Special Matrix Types" begin include("special_matrix_types.jl") end
@time @testset "Conservation Laws" begin
include("conservation_laws/burgers_test.jl")
include("conservation_laws/cubic_test.jl")
include("conservation_laws/variable_linear_advection_test.jl")
include("conservation_laws/quartic_nonconvex_test.jl")
end
@time @testset "Second Order Equations" begin
include("second_order_eqs/wave_eq_test.jl")
const SBP_TEST = get(ENV, "SBP_TEST", "all")

@time @testset "SummationByPartsOperators.jl tests" begin
@time if SBP_TEST == "all" || SBP_TEST == "part1"
@time @testset "Periodic Operators" begin include("periodic_operators_test.jl") end
@time @testset "Non-Periodic Operators" begin include("SBP_operators_test.jl") end
@time @testset "Dissipation Operators" begin include("dissipation_operators_test.jl") end
@time @testset "Variable Coefficient Operators" begin include("var_coef_operators_test.jl") end
@time @testset "Banded Matrices" begin include("banded_matrices_test.jl") end
@time @testset "Fourier Operators" begin include("fourier_operators_test.jl") end
@time @testset "Fourier Operators 2D" begin include("fourier_operators_2d_test.jl") end
@time @testset "Legendre Operators" begin include("legendre_operators_test.jl") end
@time @testset "Sum of Operators" begin include("sum_of_operators_test.jl") end
@time @testset "Upwind Operators" begin include("upwind_operators_test.jl") end
@time @testset "Special Matrix Types" begin include("special_matrix_types.jl") end
end

@time if SBP_TEST == "all" || SBP_TEST == "part2"
@time @testset "Coupling" begin include("coupling_test.jl") end
@time @testset "Conservation Laws" begin
include("conservation_laws/burgers_test.jl")
include("conservation_laws/cubic_test.jl")
include("conservation_laws/variable_linear_advection_test.jl")
include("conservation_laws/quartic_nonconvex_test.jl")
end
@time @testset "Second Order Equations" begin
include("second_order_eqs/wave_eq_test.jl")
end
end
end

0 comments on commit a16c00c

Please sign in to comment.