@@ -12,53 +12,18 @@ concurrency:
1212 group : ${{ github.workflow }}-${{ github.ref }}
1313 cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
1414jobs :
15- test :
15+ downstream :
1616 name : ${{ matrix.package.repo }}/${{ matrix.package.group }}
17- runs-on : ${{ matrix.os }}
18- env :
19- GROUP : ${{ matrix.package.group }}
2017 strategy :
2118 fail-fast : false
2219 matrix :
23- julia-version : ["1"]
24- os : [ubuntu-latest]
2520 package :
2621 - { user: SciML, repo: BoundaryValueDiffEq.jl, group: All }
27- steps :
28- - uses : actions/checkout@v4
29- - uses : julia-actions/setup-julia@v2
30- with :
31- version : ${{ matrix.julia-version }}
32- arch : x64
33- - uses : julia-actions/julia-buildpkg@v1
34- - name : Clone Downstream
35- uses : actions/checkout@v4
36- with :
37- repository : ${{ matrix.package.user }}/${{ matrix.package.repo }}
38- path : downstream
39- - name : Load this and run the downstream tests
40- shell : julia --code-coverage=user --color=yes --project=downstream {0}
41- run : |
42- using Pkg
43- try
44- # force it to use this PR's version of the package
45- Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
46- Pkg.update()
47- Pkg.test() # resolver may fail with test time deps
48- catch err
49- err isa Pkg.Resolve.ResolverError || rethrow()
50- # If we can't resolve that means this is incompatible by SemVer and this is fine
51- # It means we marked this as a breaking change, so we don't need to worry about
52- # Mistakenly introducing a breaking change, as we have intentionally made one
53- @info "Not compatible with this release. No problem." exception=err
54- exit(0) # Exit immediately, as a success
55- end
56- env :
57- RETESTITEMS_NWORKERS : 4
58- RETESTITEMS_NWORKER_THREADS : 2
59- - uses : julia-actions/julia-processcoverage@v1
60- - uses : codecov/codecov-action@v5
61- with :
62- files : lcov.info
63- token : ${{ secrets.CODECOV_TOKEN }}
64- fail_ci_if_error : true
22+ uses : " SciML/.github/.github/workflows/downstream.yml@v1"
23+ with :
24+ julia-version : " 1"
25+ os : " ubuntu-latest"
26+ owner : " ${{ matrix.package.user }}"
27+ repo : " ${{ matrix.package.repo }}"
28+ group : " ${{ matrix.package.group }}"
29+ secrets : " inherit"
0 commit comments