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 #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
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@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@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
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Interface test" include("example_test.jl")
@time @safetestset "Trait test" include("trait_test.jl")
@time @safetestset "SymbolCache test" include("symbol_cache_test.jl")
@time @safetestset "Fallback test" include("fallback_test.jl")
@time @safetestset "Parameter indexing test" include("parameter_indexing_test.jl")
@time @safetestset "State indexing test" include("state_indexing_test.jl")
Loading