Skip to content

Commit bd3dc30

Browse files
add downstream tests and require DiffEqFlux compat
1 parent 3ae6a7b commit bd3dc30

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/Downstream.yml

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

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ProgressLogging = "0.1"
4040
Reexport = "0.2, 1.0"
4141
Requires = "1.0"
4242
ReverseDiff = "1.4"
43-
SciMLBase = "1.8"
43+
SciMLBase = "1.8.1"
4444
TerminalLoggers = "0.1"
4545
Tracker = "0.2"
4646
Zygote = "0.5, 0.6"

0 commit comments

Comments
 (0)