@@ -12,14 +12,10 @@ concurrency:
1212jobs :
1313 test :
1414 name : ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
15- runs-on : ${{ matrix.os }}
16- env :
17- GROUP : ${{ matrix.package.group }}
1815 strategy :
1916 fail-fast : false
2017 matrix :
21- julia-version : [1]
22- os : [ubuntu-latest]
18+ julia-version : ["1"]
2319 package :
2420 - {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceI}
2521 - {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceII}
@@ -31,42 +27,11 @@ jobs:
3127 - {user: SciML, repo: OrdinaryDiffEq.jl, group: RegressionI}
3228 - {user: SciML, repo: OrdinaryDiffEq.jl, group: RegressionII}
3329 - {user: SciML, repo: SimpleDiffEq.jl, group: Core}
34-
35- steps :
36- - uses : actions/checkout@v6
37- - uses : julia-actions/setup-julia@v3
38- with :
39- version : ${{ matrix.julia-version }}
40- arch : x64
41- - uses : julia-actions/julia-buildpkg@latest
42- - name : Clone Downstream
43- uses : actions/checkout@v6
44- with :
45- repository : ${{ matrix.package.user }}/${{ matrix.package.repo }}
46- path : downstream
47- - name : Load this and run the downstream tests
48- shell : julia --color=yes --project=downstream {0}
49- run : |
50- using Pkg
51- try
52- # force it to use this PR's version of the package
53- Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
54- Pkg.update()
55- Pkg.test(coverage=true) # resolver may fail with test time deps
56- catch err
57- err isa Pkg.Resolve.ResolverError || rethrow()
58- # If we can't resolve that means this is incompatible by SemVer and this is fine
59- # It means we marked this as a breaking change, so we don't need to worry about
60- # Mistakenly introducing a breaking change, as we have intentionally made one
61- @info "Not compatible with this release. No problem." exception=err
62- exit(0) # Exit immediately, as a success
63- end
64- env :
65- RETESTITEMS_NWORKERS : 4
66- RETESTITEMS_NWORKER_THREADS : 2
67- - uses : julia-actions/julia-processcoverage@v1
68- - uses : codecov/codecov-action@v6
69- with :
70- files : lcov.info
71- token : ${{ secrets.CODECOV_TOKEN }}
72- fail_ci_if_error : true
30+ uses : " SciML/.github/.github/workflows/downstream.yml@v1"
31+ with :
32+ julia-version : " ${{ matrix.julia-version }}"
33+ julia-arch : " x64"
34+ owner : " ${{ matrix.package.user }}"
35+ repo : " ${{ matrix.package.repo }}"
36+ group : " ${{ matrix.package.group }}"
37+ secrets : " inherit"
0 commit comments