Skip to content

Commit da36182

Browse files
Merge pull request #8 from ChrisRackauckas-Claude/fix-julia110-and-add-downgrade
Fix Julia 1.10 support and add downgrade CI
2 parents 23745ea + 6d8a521 commit da36182

4 files changed

Lines changed: 51 additions & 3 deletions

File tree

.github/workflows/Downgrade.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Downgrade"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- 'docs/**'
9+
push:
10+
branches:
11+
- main
12+
paths-ignore:
13+
- 'docs/**'
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
downgrade:
21+
name: "Downgrade ${{ matrix.project }} on Julia 1.10"
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
project:
26+
- CanonicalMoments.jl
27+
- DiscreteMeasures.jl
28+
- OUQBase.jl
29+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
30+
with:
31+
allow-reresolve: false
32+
julia-version: "1.10"
33+
project: "${{ matrix.project }}"
34+
projects: "${{ matrix.project }}"
35+
secrets: "inherit"

CanonicalMoments.jl/Project.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ IntervalArithmeticExt = "IntervalArithmetic"
2424
SymbolicsExt = "Symbolics"
2525

2626
[compat]
27-
IntervalArithmetic = "0.16 - 0.20, =0.20.9"
27+
julia = "1.10"
28+
DiscreteMeasures = "0.1"
29+
LinearAlgebra = "1.10"
30+
Polynomials = "4"
31+
RecurrenceRelationships = "0.2"
32+
Statistics = "1.10"
33+
IntervalArithmetic = "0.18 - 0.20, =0.20.9"
2834
Reexport = "1.2.2"
2935
Symbolics = "6.29.2"
36+
37+
[sources]
38+
DiscreteMeasures = { path = "../DiscreteMeasures.jl" }

DiscreteMeasures.jl/src/DiscreteMeasures.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct DiscreteMeasure{𝕋, 𝕏, 𝕎} <: AbstractDiscreteMeasure
3131

3232
function DiscreteMeasure(x::𝕏, w::𝕎) where {𝕋, 𝕏 <: AbstractVector{𝕋}, 𝕎 <: AbstractVector}
3333
@assert length(w) == length(x)
34-
@assert allequal(length, x)
34+
@assert allequal(length.(x))
3535
return new{𝕋, 𝕏, 𝕎}(length(first(x)), x, w)
3636
end
3737
end

OUQBase.jl/Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ NaNMath = "1.1.3"
2727
OrderedCollections = "1.7.0"
2828
Polynomials = "4.0.13"
2929
Reexport = "1.2.2"
30-
SciMLBase = "2.89.1"
30+
SciMLBase = "2.153"
3131
Symbolics = "6.39.1"
3232

33+
[sources]
34+
CanonicalMoments = { path = "../CanonicalMoments.jl" }
35+
DiscreteMeasures = { path = "../DiscreteMeasures.jl" }
36+
3337
[workspace]
3438
projects = ["test"]

0 commit comments

Comments
 (0)