diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7d3bc1b..1aaf07f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,6 +10,8 @@ on: - master paths-ignore: - 'docs/**' + schedule: + - cron: '57 0 * * 5' jobs: test: runs-on: ubuntu-latest @@ -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 \ No newline at end of file diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml index 7b4b9ab..8137dc8 100644 --- a/.github/workflows/Documentation.yml +++ b/.github/workflows/Documentation.yml @@ -7,6 +7,8 @@ on: - 'release-' tags: '*' pull_request: + schedule: + - cron: '57 0 * * 5' jobs: build: diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index be85e50..ca84105 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -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 \ No newline at end of file + - uses: julia-actions/julia-runtest@v1 + with: + depwarn: error \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 12e6ded..d1315c3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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") @@ -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