Skip to content

Commit 7429aef

Browse files
Merge pull request #2737 from SciML/os/fix-downstream
fix downstream runners
2 parents 7e8665f + 6341c8e commit 7429aef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ jobs:
4949
with:
5050
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
5151
path: downstream
52+
- name: Load this and run the downstream tests
53+
shell: julia --color=yes --project=downstream {0}
54+
run: |
55+
using Pkg
56+
try
57+
Pkg.develop(map(path ->Pkg.PackageSpec.(;path="lib/$(path)"), readdir("./lib")));
58+
Pkg.test(coverage=true) # resolver may fail with test time depsAdd commentMore actions
59+
catch err
60+
err isa Pkg.Resolve.ResolverError || rethrow()
61+
# If we can't resolve that means this is incompatible by SemVer and this is fine
62+
# It means we marked this as a breaking change, so we don't need to worry about
63+
# mistakenly introducing a breaking change, as we have intentionally made one
64+
@info "Not compatible with this release. No problem." exception=err
65+
exit(0) # Exit immediately, as a success
66+
end
5267
- uses: julia-actions/julia-processcoverage@v1
5368
- uses: codecov/codecov-action@v5
5469
with:

0 commit comments

Comments
 (0)