77
88jobs :
99 test :
10- name : ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
11- runs-on : ${{ matrix.os }}
12- env :
13- GROUP : ${{ matrix.package.group }}
10+ name : ${{ matrix.package.repo }}/${{ matrix.package.group }}
1411 strategy :
1512 fail-fast : false
1613 matrix :
17- julia-version : [1]
18- os : [ubuntu-latest]
1914 package :
2015 - {user: SciML, repo: SciMLBase.jl, group: Core}
2116 - {user: SciML, repo: DiffEqBase.jl, group: Core}
@@ -32,38 +27,10 @@ jobs:
3227 - {user: SciML, repo: SciMLSensitivity.jl, group: Core5}
3328 - {user: SciML, repo: SciMLSensitivity.jl, group: Core6}
3429 - {user: SciML, repo: LabelledArrays.jl, group: RecursiveArrayTools}
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- - uses : julia-actions/julia-processcoverage@v1
65- - uses : codecov/codecov-action@v6
66- with :
67- files : lcov.info
68- token : ${{ secrets.CODECOV_TOKEN }}
69- fail_ci_if_error : true
30+ uses : " SciML/.github/.github/workflows/downstream.yml@v1"
31+ with :
32+ owner : " ${{ matrix.package.user }}"
33+ repo : " ${{ matrix.package.repo }}"
34+ group : " ${{ matrix.package.group }}"
35+ julia-version : " 1"
36+ secrets : " inherit"
0 commit comments