From 240c389660361d1625969a8f59a082c58e4e6244 Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Thu, 11 Jan 2024 19:32:06 +0100 Subject: [PATCH] More CI --- .github/workflows/CI.yml | 28 +++++++++--------------- .github/workflows/Documentation.yml | 3 ++- .github/workflows/Downgrade.yml | 18 ++++++++++++--- Project.toml | 2 +- test/runtests.jl | 34 +++++++---------------------- 5 files changed, 36 insertions(+), 49 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8df3df2..da1ee5f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,43 +10,35 @@ on: - main paths-ignore: - 'docs/**' + schedule: + - cron: '6 23 * * 5' 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' 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@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 - - uses: actions/upload-artifact@v4 - if: failure() || success() with: - name: logs ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - path: test/logs + 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 14bd200..78d542b 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -6,7 +6,8 @@ on: - main tags: '*' pull_request: - + schedule: + - cron: '6 23 * * 5' jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 372644a..cc1831c 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -10,20 +10,32 @@ on: - main paths-ignore: - 'docs/**' + schedule: + - cron: '6 23 * * 5' 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 fc203b1..9129a24 100644 --- a/Project.toml +++ b/Project.toml @@ -13,6 +13,7 @@ Aqua = "0.8" CSV = "0.10.5" Catalyst = "13" DataFrames = "1" +Downloads = "1" ModelingToolkit = "8.51" OrdinaryDiffEq = "6.42" Plots = "1.11" @@ -21,7 +22,6 @@ SBMLToolkitTestSuite = "0.0.3" SafeTestsets = "0.1" Sundials = "4.14" SymbolicUtils = "1" -Downloads = "1" Test = "1" julia = "1.10" diff --git a/test/runtests.jl b/test/runtests.jl index ecabd09..54b33e9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,28 +1,10 @@ using SafeTestsets, Test -@safetestset "SBMLToolkit.jl" begin - @safetestset "Quality Assurance" begin - include("qa.jl") - end - @safetestset "Systems" begin - include("systems.jl") - end - @safetestset "Reactions" begin - include("reactions.jl") - end - @safetestset "Rules" begin - include("rules.jl") - end - @safetestset "Events" begin - include("events.jl") - end - @safetestset "Utils" begin - include("utils.jl") - end - @safetestset "Simulation results" begin - include("simresults.jl") - end - @safetestset "Wuschel" begin - include("wuschel.jl") - end -end +@safetestset "Quality Assurance" include("qa.jl") +@safetestset "Systems" include("systems.jl") +@safetestset "Reactions" include("reactions.jl") +@safetestset "Rules" include("rules.jl") +@safetestset "Events" include("events.jl") +@safetestset "Utils" include("utils.jl") +@safetestset "Simulation results" include("simresults.jl") +@safetestset "Wuschel" include("wuschel.jl")