Skip to content

Commit 687fdfb

Browse files
Merge pull request #234 from JuliaArrays/downstream
Start a downstream CI setup
2 parents a563216 + 148c64f commit 687fdfb

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: IntegrationTest
2+
on:
3+
push:
4+
branches: [master]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
GROUP: ${{ matrix.package.group }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
julia-version: [1,1.6]
18+
os: [ubuntu-latest]
19+
package:
20+
- {user: JuliaDiff, repo: SparseDiffTools.jl, group: Core}
21+
- {user: SciML, repo: SciMLBase.jl, group: Core}
22+
- {user: SciML, repo: DiffEqBase.jl, group: Core}
23+
- {user: SciML, repo: DiffEqBase.jl, group: Downstream}
24+
- {user: SciML, repo: DiffEqBase.jl, group: Downstream2}
25+
- {user: SciML, repo: DiffEqSensitivity.jl, group: Core}
26+
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Core}
27+
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Interface}
28+
- {user: SciML, repo: DelayDiffEq.jl, group: Interface}
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: julia-actions/setup-julia@v1
32+
with:
33+
version: ${{ matrix.julia-version }}
34+
arch: x64
35+
- uses: julia-actions/julia-buildpkg@latest
36+
- name: Clone Downstream
37+
uses: actions/checkout@v2
38+
with:
39+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
40+
path: downstream
41+
- name: Load this and run the downstream tests
42+
shell: julia --color=yes --project=downstream {0}
43+
run: |
44+
using Pkg
45+
try
46+
# force it to use this PR's version of the package
47+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
48+
Pkg.update()
49+
Pkg.test() # resolver may fail with test time deps
50+
catch err
51+
err isa Pkg.Resolve.ResolverError || rethrow()
52+
# If we can't resolve that means this is incompatible by SemVer and this is fine
53+
# It means we marked this as a breaking change, so we don't need to worry about
54+
# Mistakenly introducing a breaking change, as we have intentionally made one
55+
@info "Not compatible with this release. No problem." exception=err
56+
exit(0) # Exit immediately, as a success
57+
end

0 commit comments

Comments
 (0)