Skip to content

Commit

Permalink
Merge pull request #113 from ArnoStrouwen/CI
Browse files Browse the repository at this point in the history
more CI
  • Loading branch information
ChrisRackauckas authored Feb 26, 2024
2 parents 635bb7e + efaf03a commit 5f8c40a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 32 deletions.
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: '53 12 * * 0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,22 @@ on:
- master
paths-ignore:
- 'docs/**'
schedule:
- cron: '53 12 * * 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
Expand All @@ -25,5 +35,8 @@ jobs:
# 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
39 changes: 19 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,56 @@
name: CI
on:
push:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
- 'LICENSE.md'
- 'README.md'
- '.github/workflows/CompatHelper.yml'
- '.github/workflows/TagBot.yml'
tags: '*'
pull_request:

push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'LICENSE.md'
- 'README.md'
- '.github/workflows/CompatHelper.yml'
- '.github/workflows/TagBot.yml'

schedule:
- cron: '53 12 * * 0'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.group }}
strategy:
fail-fast: false
matrix:
group:
- Core
version:
- '1'
os:
- ubuntu-latest
arch:
- x64
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v4
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@v4
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

file: lcov.info
8 changes: 5 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ DiffEqBase = "6.117"
LinearAlgebra = "1.10"
ModelingToolkit = "8.51"
OrdinaryDiffEq = "6.47"
Plots = "1.10"
Plots = "1.30"
SafeTestsets = "0.1"
SparseArrays = "1.10"
Sundials = "4.4"
Symbolics = "5.2"
TimerOutputs = "0.5"
Test = "1"
TimerOutputs = "0.5"
julia = "1.10"

[extras]
Expand All @@ -36,9 +37,10 @@ DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"

[targets]
test = ["Aqua", "CSVFiles", "DataFrames", "DiffEqBase", "LinearAlgebra", "OrdinaryDiffEq", "Plots", "Sundials", "Test", "TimerOutputs"]
test = ["Aqua", "CSVFiles", "DataFrames", "DiffEqBase", "LinearAlgebra", "OrdinaryDiffEq", "Plots", "SafeTestsets", "Sundials", "Test", "TimerOutputs"]
12 changes: 6 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using ReactionNetworkImporters, Test
using SafeTestsets, Test

@time begin
@time @testset "Quality Assurance" begin include("qa.jl") end
@time @testset "BNG Birth-Death Test" begin include("test_nullrxs_odes.jl") end
@time @testset "BNG Repressilator Test" begin include("test_repressilator_odes.jl") end
@time @testset "BNG Higher Order Test" begin include("test_higherorder_odes.jl") end
@time @testset "Matrix Input Test" begin include("test_mats.jl") end
@time @safetestset "Quality Assurance" begin include("qa.jl") end
@time @safetestset "BNG Birth-Death Test" begin include("test_nullrxs_odes.jl") end
@time @safetestset "BNG Repressilator Test" begin include("test_repressilator_odes.jl") end
@time @safetestset "BNG Higher Order Test" begin include("test_higherorder_odes.jl") end
@time @safetestset "Matrix Input Test" begin include("test_mats.jl") end
end

0 comments on commit 5f8c40a

Please sign in to comment.