Skip to content

Commit

Permalink
Merge pull request #148 from ArnoStrouwen/CI
Browse files Browse the repository at this point in the history
More CI
  • Loading branch information
Vaibhavdixit02 authored Jan 14, 2024
2 parents ffe5474 + 5068b0b commit 6886dbb
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 52 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- master
tags: '*'
pull_request:

schedule:
- cron: '0 8 * * 6'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
46 changes: 11 additions & 35 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6886dbb

Please sign in to comment.