Skip to content

Commit f9ae1dd

Browse files
ci: run MTKTearing tests in downstream CI
1 parent b0e91b0 commit f9ae1dd

1 file changed

Lines changed: 31 additions & 22 deletions

File tree

.github/workflows/Downstream.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616

1717
jobs:
1818
test:
19-
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
19+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}/${{ matrix.package.subpkg }}
2020
runs-on: ${{ matrix.os }}
2121
env:
2222
GROUP: ${{ matrix.package.group }}
@@ -26,26 +26,27 @@ jobs:
2626
julia-version: [1]
2727
os: [ubuntu-latest]
2828
package:
29-
- {user: SciML, repo: SciMLBase.jl, group: Downstream}
30-
- {user: SciML, repo: SciMLBase.jl, group: SymbolicIndexingInterface}
31-
- {user: SciML, repo: Catalyst.jl, group: Modeling}
32-
- {user: SciML, repo: Catalyst.jl, group: Simulation}
33-
- {user: SciML, repo: Catalyst.jl, group: Hybrid}
34-
- {user: SciML, repo: Catalyst.jl, group: Misc}
35-
- {user: SciML, repo: Catalyst.jl, group: Spatial}
36-
- {user: SciML, repo: CellMLToolkit.jl, group: Core}
37-
- {user: SciML, repo: SBMLToolkit.jl, group: All}
38-
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE1}
39-
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE2}
40-
- {user: SciML, repo: DataDrivenDiffEq.jl, group: Downstream}
41-
- {user: SciML, repo: StructuralIdentifiability.jl, group: Core}
42-
- {user: SciML, repo: ModelingToolkitStandardLibrary.jl, group: Core}
43-
- {user: SciML, repo: ModelOrderReduction.jl, group: All}
44-
- {user: SciML, repo: MethodOfLines.jl, group: Interface}
45-
- {user: SciML, repo: MethodOfLines.jl, group: 2D_Diffusion}
46-
- {user: SciML, repo: MethodOfLines.jl, group: DAE}
47-
- {user: SciML, repo: ModelingToolkitNeuralNets.jl, group: Core}
48-
- {user: SciML, repo: SciMLSensitivity.jl, group: Core8}
29+
- {user: SciML, repo: SciMLBase.jl, group: Downstream, subpkg: ""}
30+
- {user: SciML, repo: SciMLBase.jl, group: SymbolicIndexingInterface, subpkg: ""}
31+
- {user: SciML, repo: Catalyst.jl, group: Modeling, subpkg: ""}
32+
- {user: SciML, repo: Catalyst.jl, group: Simulation, subpkg: ""}
33+
- {user: SciML, repo: Catalyst.jl, group: Hybrid, subpkg: ""}
34+
- {user: SciML, repo: Catalyst.jl, group: Misc, subpkg: ""}
35+
- {user: SciML, repo: Catalyst.jl, group: Spatial, subpkg: ""}
36+
- {user: SciML, repo: CellMLToolkit.jl, group: Core, subpkg: ""}
37+
- {user: SciML, repo: SBMLToolkit.jl, group: All, subpkg: ""}
38+
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE1, subpkg: ""}
39+
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE2, subpkg: ""}
40+
- {user: SciML, repo: DataDrivenDiffEq.jl, group: Downstream, subpkg: ""}
41+
- {user: SciML, repo: StructuralIdentifiability.jl, group: Core, subpkg: ""}
42+
- {user: SciML, repo: ModelingToolkitStandardLibrary.jl, group: Core, subpkg: ""}
43+
- {user: SciML, repo: ModelOrderReduction.jl, group: All, subpkg: ""}
44+
- {user: SciML, repo: MethodOfLines.jl, group: Interface, subpkg: ""}
45+
- {user: SciML, repo: MethodOfLines.jl, group: 2D_Diffusion, subpkg: ""}
46+
- {user: SciML, repo: MethodOfLines.jl, group: DAE, subpkg: ""}
47+
- {user: SciML, repo: ModelingToolkitNeuralNets.jl, group: Core, subpkg: ""}
48+
- {user: SciML, repo: SciMLSensitivity.jl, group: Core8, subpkg: ""}
49+
- {user: JuliaComputing, repo: StateSelection.jl, group: All, subpkg: ModelingToolkitTearing}
4950
steps:
5051
- uses: actions/checkout@v6
5152
- uses: julia-actions/setup-julia@v2
@@ -66,8 +67,16 @@ jobs:
6667
# force it to use this PR's version of the package
6768
Pkg.develop(PackageSpec(path="./lib/ModelingToolkitBase")) # resolver may fail with main deps
6869
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
70+
subpkg = "${{ matrix.package.subpkg }}"
71+
if subpkg != ""
72+
Pkg.develop(PackageSpec(path=joinpath("./downstream/lib", subpkg)))
73+
end
6974
Pkg.update()
70-
Pkg.test(coverage=true) # resolver may fail with test time deps
75+
if subpkg != ""
76+
Pkg.test(subpkg)
77+
else
78+
Pkg.test(coverage=true) # resolver may fail with test time deps
79+
end
7180
catch err
7281
err isa Pkg.Resolve.ResolverError || rethrow()
7382
# If we can't resolve that means this is incompatible by SemVer and this is fine

0 commit comments

Comments
 (0)