Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More CI #144

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:
- main
tags: '*'
pull_request:

schedule:
- cron: '6 23 * * 5'
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:
- 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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -21,7 +22,6 @@ SBMLToolkitTestSuite = "0.0.3"
SafeTestsets = "0.1"
Sundials = "4.14"
SymbolicUtils = "1"
Downloads = "1"
Test = "1"
julia = "1.10"

Expand Down
34 changes: 8 additions & 26 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -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")
Loading