Skip to content

Commit

Permalink
more CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Jan 7, 2024
1 parent e1d0cef commit aa1fc89
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 56 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
- master
tags: '*'
pull_request:

schedule:
- cron: '47 20 * * 0'
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: '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
8 changes: 5 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ 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"
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"

Expand All @@ -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"]
1 change: 1 addition & 0 deletions test/interface.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using DataInterpolations
u = 2.0collect(1:10)
t = 1.0collect(1:10)
A = LinearInterpolation(u, t)
Expand Down
2 changes: 1 addition & 1 deletion test/interpolation_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DataInterpolations, Test
using DataInterpolations
using StableRNGs
using Optim, ForwardDiff

Expand Down
2 changes: 1 addition & 1 deletion test/online_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DataInterpolations, Test
using DataInterpolations

t = [1, 2, 3]
u = [0, 1, 0]
Expand Down
1 change: 1 addition & 0 deletions test/regularization.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using DataInterpolations
import StableRNGs: StableRNG
using RegularizationTools

Expand Down
36 changes: 9 additions & 27 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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")
1 change: 1 addition & 0 deletions test/show.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using DataInterpolations
using Optim, StableRNGs
using RegularizationTools

Expand Down

0 comments on commit aa1fc89

Please sign in to comment.