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 a7e0efb commit 5850977
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 44 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: '44 9 * * 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:
- master
paths-ignore:
- 'docs/**'
schedule:
- cron: '44 9 * * 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
33 changes: 25 additions & 8 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,56 @@
name: IntegrationTest
on:
push:
branches: [master]
tags: [v*]
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'docs/**'
schedule:
- cron: '44 9 * * 5'

jobs:
test:
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.version }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.package.group }}
strategy:
fail-fast: false
matrix:
julia-version: [1]
os: [ubuntu-latest]
package:
- {user: SciML, repo: RecursiveArrayTools.jl, group: All}
- {user: JuliaSymbolics, repo: Symbolics.jl, group: SymbolicIndexingInterface}
- {user: SciML, repo: SciMLBase.jl, group: SymbolicIndexingInterface}
version:
- '1'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-buildpkg@latest
- name: Clone Downstream
uses: actions/checkout@v4
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
path: downstream
- name: Load this and run the downstream tests
shell: julia --color=yes --project=downstream {0}
shell: julia --color=yes --depwarn=error --project=downstream {0}
run: |
using Pkg
try
Expand Down
32 changes: 21 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,42 @@ on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
schedule:
- cron: '44 9 * * 5'
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
group:
- All
- 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: 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
with:
depwarn: error
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
28 changes: 7 additions & 21 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,10 @@ using SymbolicIndexingInterface
using SafeTestsets
using Test

@safetestset "Quality Assurance" begin
@time include("qa.jl")
end
@safetestset "Interface test" begin
@time include("example_test.jl")
end
@safetestset "Trait test" begin
@time include("trait_test.jl")
end
@safetestset "SymbolCache test" begin
@time include("symbol_cache_test.jl")
end
@safetestset "Fallback test" begin
@time include("fallback_test.jl")
end
@safetestset "Parameter indexing test" begin
@time include("parameter_indexing_test.jl")
end
@safetestset "State indexing test" begin
@time include("state_indexing_test.jl")
end
@safetestset "Quality Assurance" @time include("qa.jl")
@safetestset "Interface test" @time include("example_test.jl")
@safetestset "Trait test" @time include("trait_test.jl")
@safetestset "SymbolCache test" @time include("symbol_cache_test.jl")
@safetestset "Fallback test" @time include("fallback_test.jl")
@safetestset "Parameter indexing test" @time include("parameter_indexing_test.jl")
@safetestset "State indexing test" @time include("state_indexing_test.jl")

0 comments on commit 5850977

Please sign in to comment.