From 5068b0bae1c7c1f3d0f561af4ca82c88a6221c13 Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Sat, 13 Jan 2024 20:00:08 +0100 Subject: [PATCH] More CI --- .github/workflows/CI.yml | 30 +++++++++++-------- .github/workflows/Documentation.yml | 3 +- .github/workflows/Downgrade.yml | 18 +++++++++-- test/runtests.jl | 46 +++++++---------------------- 4 files changed, 45 insertions(+), 52 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 58f070a0..79f968c6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,31 +10,35 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '0 8 * * 6' jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - version: - - 1 + group: + - Core + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} - - uses: actions/cache@v3 - env: - cache-name: cache-artifacts + - uses: julia-actions/cache@v1 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 }}- + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + with: + depwarn: error - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: - file: lcov.info + file: lcov.info \ No newline at end of file diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index adc1628e..9c5b7a3b 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -6,7 +6,8 @@ on: - master tags: '*' pull_request: - + schedule: + - cron: '0 8 * * 6' jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 01ff8cad..eb5bcdd0 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -10,20 +10,32 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '0 8 * * 6' jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - version: ['1'] + group: + - Core + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} - uses: cjdoris/julia-downgrade-compat-action@v1 -# if: ${{ matrix.version == '1.6' }} with: skip: Pkg,TOML + - uses: julia-actions/cache@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index c386031a..c1793793 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,42 +1,18 @@ -using GlobalSensitivity, SafeTestsets -using Test +using SafeTestsets, Test const GROUP = get(ENV, "GROUP", "All") @time begin if GROUP == "All" || GROUP == "GSA" - @time @safetestset "Quality Assurance" begin - include("qa.jl") - end - @time @safetestset "Morris Method" begin - include("morris_method.jl") - end - @time @safetestset "Sobol Method" begin - include("sobol_method.jl") - end - @time @safetestset "DGSM Method" begin - include("DGSM.jl") - end - @time @safetestset "eFAST Method" begin - include("eFAST_method.jl") - end - @time @safetestset "RegressionGSA Method" begin - include("regression_sensitivity.jl") - end - @time @safetestset "DeltaMoment Method" begin - include("delta_method.jl") - end - @time @safetestset "Fractional factorial method" begin - include("fractional_factorial_method.jl") - end - @time @safetestset "Rbd-fast method" begin - include("rbd-fast_method.jl") - end - @time @safetestset "Easi Method" begin - include("easi_method.jl") - end - @time @safetestset "Shapley Method" begin - include("shapley_method.jl") - end + @time @safetestset "Morris Method" include("morris_method.jl") + @time @safetestset "Sobol Method" include("sobol_method.jl") + @time @safetestset "DGSM Method" include("DGSM.jl") + @time @safetestset "eFAST Method" include("eFAST_method.jl") + @time @safetestset "RegressionGSA Method" include("regression_sensitivity.jl") + @time @safetestset "DeltaMoment Method" include("delta_method.jl") + @time @safetestset "Fractional factorial method" include("fractional_factorial_method.jl") + @time @safetestset "Rbd-fast method" include("rbd-fast_method.jl") + @time @safetestset "Easi Method" include("easi_method.jl") + @time @safetestset "Shapley Method" include("shapley_method.jl") end end