Skip to content

Commit

Permalink
more CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Jan 6, 2024
1 parent cabe7f2 commit 7b98492
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 41 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
- master
paths-ignore:
- 'docs/**'
schedule:
- cron: '57 0 * * 5'
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -19,26 +21,23 @@ 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
env:
GROUP: ${{ matrix.group }}
with:
depwarn: error
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
file: lcov.info
2 changes: 2 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- 'release-'
tags: '*'
pull_request:
schedule:
- cron: '57 0 * * 5'

jobs:
build:
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,33 @@ on:
- master
paths-ignore:
- 'docs/**'
schedule:
- cron: '57 0 * * 5'
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
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
33 changes: 8 additions & 25 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ using Pkg
using SafeTestsets

const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = Sys.iswindows() && haskey(ENV, "APPVEYOR")

function activate_downstream_env()
Pkg.activate("GPU")
Expand All @@ -11,32 +10,16 @@ function activate_downstream_env()
end

if GROUP == "All" || GROUP == "Core"
@safetestset "Quality Assurance" begin
include("qa.jl")
end
@safetestset "DiffCache Dispatch" begin
include("core_dispatch.jl")
end
@safetestset "DiffCache ODE tests" begin
include("core_odes.jl")
end
@safetestset "DiffCache Resizing" begin
include("core_resizing.jl")
end
@safetestset "DiffCache Nested Duals" begin
include("core_nesteddual.jl")
end
@safetestset "DiffCache Sparsity Support" begin
include("sparsity_support.jl")
end
@safetestset "GeneralLazyBufferCache" begin
include("general_lbc.jl")
end
@safetestset "Quality Assurance" include("qa.jl")
@safetestset "DiffCache Dispatch" include("core_dispatch.jl")
@safetestset "DiffCache ODE tests" include("core_odes.jl")
@safetestset "DiffCache Resizing" include("core_resizing.jl")
@safetestset "DiffCache Nested Duals" include("core_nesteddual.jl")
@safetestset "DiffCache Sparsity Support" include("sparsity_support.jl")
@safetestset "GeneralLazyBufferCache" include("general_lbc.jl")
end

if GROUP == "GPU"
activate_downstream_env()
@safetestset "GPU tests" begin
include("gpu_all.jl")
end
@safetestset "GPU tests" include("gpu_all.jl")
end

0 comments on commit 7b98492

Please sign in to comment.