Skip to content

Commit

Permalink
Downgrade CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Jan 4, 2024
1 parent 309bf97 commit 592ccfc
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 42 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Downgrade
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1']
group:
- Core
- Downstream
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/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
38 changes: 18 additions & 20 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Expand All @@ -33,37 +32,36 @@ RecursiveArrayToolsTrackerExt = "Tracker"
RecursiveArrayToolsZygoteExt = "Zygote"

[compat]
Adapt = "3, 4"
Adapt = "3.4, 4"
Aqua = "0.8"
ArrayInterface = "7"
DocStringExtensions = "0.8, 0.9"
ArrayInterface = "7.6"
DocStringExtensions = "0.9"
FastBroadcast = "0.2.8"
ForwardDiff = "0.10"
GPUArraysCore = "0.1"
ForwardDiff = "0.10.19"
GPUArraysCore = "0.1.1"
IteratorInterfaceExtensions = "1"
LabelledArrays = "1"
LinearAlgebra = "1"
LabelledArrays = "1.15"
LinearAlgebra = "1.10"
Measurements = "2.3"
MonteCarloMeasurements = "1.1"
NLsolve = "4"
OrdinaryDiffEq = "6"
NLsolve = "4.5"
OrdinaryDiffEq = "6.62"
Pkg = "1"
Random = "1"
RecipesBase = "0.7, 0.8, 1.0"
Requires = "1.0"
RecipesBase = "1.1"
SafeTestsets = "0.1"
SparseArrays = "1"
SparseArrays = "1.10"
StaticArrays = "1.6"
StaticArraysCore = "1.1"
Statistics = "1"
StructArrays = "0.6"
StaticArraysCore = "1.4"
Statistics = "1.10"
StructArrays = "0.6.11"
SymbolicIndexingInterface = "0.3.2"
Tables = "1"
Tables = "1.11"
Test = "1"
Tracker = "0.2"
Tracker = "0.2.15"
Unitful = "1"
Zygote = "0.6.56"
julia = "1.9"
Zygote = "0.6.67"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
15 changes: 0 additions & 15 deletions src/RecursiveArrayTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,6 @@ import GPUArraysCore
Base.convert(T::Type{<:GPUArraysCore.AnyGPUArray}, VA::AbstractVectorOfArray) = stack(VA.u)
(T::Type{<:GPUArraysCore.AnyGPUArray})(VA::AbstractVectorOfArray) = T(Array(VA))

import Requires
@static if !isdefined(Base, :get_extension)
function __init__()
Requires.@require Measurements="eff96d63-e80a-5855-80a2-b1b0885c5ab7" begin
include("../ext/RecursiveArrayToolsMeasurementsExt.jl")
end
Requires.@require Tracker="9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" begin
include("../ext/RecursiveArrayToolsTrackerExt.jl")
end
Requires.@require Zygote="e88e6eb3-aa80-5325-afca-941959d7151f" begin
include("../ext/RecursiveArrayToolsZygoteExt.jl")
end
end
end

export VectorOfArray, DiffEqArray, AbstractVectorOfArray, AbstractDiffEqArray,
AllObserved, vecarr_to_vectors, tuples

Expand Down
4 changes: 1 addition & 3 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using RecursiveArrayTools, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(RecursiveArrayTools)
ambs = Aqua.detect_ambiguities(RecursiveArrayTools; recursive = true)
@warn "Number of method ambiguities: $(length(ambs))"
@test length(ambs) <= 11
Aqua.test_ambiguities(RecursiveArrayTools; recursive = false, broken = true)
Aqua.test_deps_compat(RecursiveArrayTools)
Aqua.test_piracies(RecursiveArrayTools)
Aqua.test_project_extras(RecursiveArrayTools)
Expand Down
6 changes: 2 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ using RecursiveArrayTools
using Test
using SafeTestsets

@test_broken isempty(Test.detect_ambiguities(RecursiveArrayTools))
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = (Sys.iswindows() && haskey(ENV, "APPVEYOR"))

function activate_downstream_env()
Pkg.activate("downstream")
Expand Down Expand Up @@ -57,7 +55,7 @@ end
end
end

if !is_APPVEYOR && GROUP == "Downstream"
if GROUP == "Downstream"
activate_downstream_env()
@time @safetestset "DiffEqArray Indexing Tests" begin
include("downstream/symbol_indexing.jl")
Expand All @@ -73,7 +71,7 @@ end
end
end

if !is_APPVEYOR && GROUP == "GPU"
if GROUP == "GPU"
activate_gpu_env()
@time @safetestset "VectorOfArray GPU" begin
include("gpu/vectorofarray_gpu.jl")
Expand Down

0 comments on commit 592ccfc

Please sign in to comment.