Skip to content

Commit c6807aa

Browse files
committed
Merge remote-tracking branch 'origin/master' into YinboMa-patch-1
2 parents 7f9dfa7 + 0b9ca0a commit c6807aa

File tree

2 files changed

+55
-7
lines changed

2 files changed

+55
-7
lines changed

.github/workflows/Downstream.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
name: IntegrationTest
3+
on:
4+
push:
5+
branches: [master]
6+
tags: [v*]
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
12+
runs-on: ${{ matrix.os }}
13+
env:
14+
GROUP: ${{ matrix.package.group }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
julia-version: [1]
19+
os: [ubuntu-latest]
20+
package:
21+
- {user: SciML, repo: ModelingToolkit.jl, group: All}
22+
- {user: SciML, repo: Catalyst.jl, group: All}
23+
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE}
24+
- {user: SciML, repo: DataDrivenDiffEq.jl, group: Standard}
25+
- {user: JuliaSymbolics, repo: Symbolics.jl, group: All}
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.julia-version }}
32+
arch: x64
33+
- uses: julia-actions/julia-buildpkg@latest
34+
- name: Clone Downstream
35+
uses: actions/checkout@v2
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 --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

test/runtests.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,3 @@ include("code.jl")
2121
include("nf.jl")
2222
include("interface.jl")
2323
include("fuzz.jl")
24-
25-
if haskey(ENV, "CI")
26-
include("benchmark.jl")
27-
using Pkg
28-
Pkg.add(url="https://github.com/SciML/ModelingToolkit.jl.git", rev="master")
29-
Pkg.test("ModelingToolkit")
30-
end

0 commit comments

Comments
 (0)