Skip to content

Commit

Permalink
Merge pull request #157 from ArnoStrouwen/CI
Browse files Browse the repository at this point in the history
Ci
  • Loading branch information
ChrisRackauckas authored Jan 6, 2024
2 parents 8ab675a + eba5301 commit 237826f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 29 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,22 @@ jobs:
- 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:
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
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
- uses: julia-actions/julia-runtest@v1
with:
depwarn: error
28 changes: 20 additions & 8 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: IntegrationTest
on:
push:
branches: [master]
tags: [v*]
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'

jobs:
test:
Expand All @@ -14,28 +20,34 @@ jobs:
strategy:
fail-fast: false
matrix:
julia-version: [1]
os: [ubuntu-latest]
package:
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceI}
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceII}
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceIII}
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceIV}
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceV}
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 }}
arch: x64
version: ${{ matrix.version }}
- uses: julia-actions/julia-buildpkg@latest
- name: Clone Downstream
uses: actions/checkout@v4
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
path: downstream
- uses: julia-actions/cache@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- 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
12 changes: 3 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@ end

@time begin
if GROUP == "All" || GROUP == "Core"
@time @safetestset "Quality Assurance" begin
include("qa.jl")
end
@time @safetestset "Basic Tests" begin
include("basictests.jl")
end
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Basic Tests" include("basictests.jl")
end

if GROUP == "GPU"
activate_gpu_env()
@time @safetestset "GPU Tests" begin
include("gpu/gputests.jl")
end
@time @safetestset "GPU Tests" include("gpu/gputests.jl")
end
end

0 comments on commit 237826f

Please sign in to comment.