diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ee5c90f0..74a110d9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,39 +10,35 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '47 20 * * 0' jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: + group: + - Core version: - '1' -# - 'nightly' os: - ubuntu-latest - arch: - - x64 + - macos-latest + - windows-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - - uses: julia-actions/setup-julia@f40c4b69330df1d22e7590c12e76dc2f9c66e0bc + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 - 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 }}- - - uses: julia-actions/julia-buildpkg@72ddd0fcdc760e6d2ef7ef2bbb11ae5032b671a8 - - uses: julia-actions/julia-runtest@79a7e100883947123f8263c5f06e6c0ea3eb972f - - uses: julia-actions/julia-processcoverage@03114f09f119417c3242a9fb6e0b722676aedf38 - - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d + 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 \ No newline at end of file diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index d8aa2667..860cd3c5 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -5,7 +5,8 @@ on: - master tags: '*' pull_request: - + schedule: + - cron: '47 20 * * 0' jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 01ff8cad..cbfc1503 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -10,20 +10,32 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '47 20 * * 0' 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/Project.toml b/Project.toml index 6df2909f..67132eab 100644 --- a/Project.toml +++ b/Project.toml @@ -25,7 +25,7 @@ DataInterpolationsSymbolicsExt = "Symbolics" Aqua = "0.8" ChainRulesCore = "1" FiniteDifferences = "0.12.31" -ForwardDiff = "0.10.13" +ForwardDiff = "0.10.19" LinearAlgebra = "1.10" Optim = "1.6" PrettyTables = "2" @@ -33,8 +33,9 @@ QuadGK = "2.9.1" RecipesBase = "1.1" Reexport = "1" RegularizationTools = "0.6" +SafeTestsets = "0.1" StableRNGs = "1" -Symbolics = "4" +Symbolics = "5.1" Test = "1" julia = "1.10" @@ -46,9 +47,10 @@ ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" Optim = "429524aa-4258-5aef-a3af-852621145aeb" QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" RegularizationTools = "29dad682-9a27-4bc3-9c72-016788665182" +SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Aqua", "ChainRulesCore", "Optim", "RegularizationTools", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "Symbolics"] +test = ["Aqua", "SafeTestsets", "ChainRulesCore", "Optim", "RegularizationTools", "Test", "StableRNGs", "FiniteDifferences", "QuadGK", "ForwardDiff", "Symbolics"] diff --git a/test/interface.jl b/test/interface.jl index ad73c31d..3b17a1ca 100644 --- a/test/interface.jl +++ b/test/interface.jl @@ -1,3 +1,4 @@ +using DataInterpolations u = 2.0collect(1:10) t = 1.0collect(1:10) A = LinearInterpolation(u, t) diff --git a/test/interpolation_tests.jl b/test/interpolation_tests.jl index c8416e14..9fbf153c 100644 --- a/test/interpolation_tests.jl +++ b/test/interpolation_tests.jl @@ -1,4 +1,4 @@ -using DataInterpolations, Test +using DataInterpolations using StableRNGs using Optim, ForwardDiff diff --git a/test/online_tests.jl b/test/online_tests.jl index a7da6d86..6103cfc4 100644 --- a/test/online_tests.jl +++ b/test/online_tests.jl @@ -1,4 +1,4 @@ -using DataInterpolations, Test +using DataInterpolations t = [1, 2, 3] u = [0, 1, 0] diff --git a/test/regularization.jl b/test/regularization.jl index 39d8e92c..6e083fa0 100644 --- a/test/regularization.jl +++ b/test/regularization.jl @@ -1,3 +1,4 @@ +using DataInterpolations import StableRNGs: StableRNG using RegularizationTools diff --git a/test/runtests.jl b/test/runtests.jl index c46409f8..a7bac9e3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,28 +1,10 @@ -using DataInterpolations, Test +using SafeTestsets -@testset "DataInterpolations" begin - @testset "Quality Assurance" begin - include("qa.jl") - end - @testset "Interface" begin - include("interface.jl") - end - @testset "Interpolation Tests" begin - include("interpolation_tests.jl") - end - @testset "Derivative Tests" begin - include("derivative_tests.jl") - end - @testset "Integral Tests" begin - include("integral_tests.jl") - end - @testset "Online Tests" begin - include("online_tests.jl") - end - @testset "Regularization Smoothing" begin - include("regularization.jl") - end - @testset "Show methods" begin - include("show.jl") - end -end +@safetestset "Quality Assurance" include("qa.jl") +@safetestset "Interface" include("interface.jl") +@safetestset "Interpolation Tests" include("interpolation_tests.jl") +@safetestset "Derivative Tests" include("derivative_tests.jl") +@safetestset "Integral Tests" include("integral_tests.jl") +@safetestset "Online Tests" include("online_tests.jl") +@safetestset "Regularization Smoothing" include("regularization.jl") +@safetestset "Show methods" include("show.jl") diff --git a/test/show.jl b/test/show.jl index 2dcbfb96..47bee3e7 100644 --- a/test/show.jl +++ b/test/show.jl @@ -1,3 +1,4 @@ +using DataInterpolations using Optim, StableRNGs using RegularizationTools