-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.99 KB
/
IntegrationTest.yml
File metadata and controls
57 lines (49 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test dependent packages
# Based on https://github.com/SciML/SciMLBase.jl/blob/master/.github/workflows/Downstream.yml
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
name: ${{ matrix.package.repo }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ['1.11']
os: [ubuntu-latest]
package:
# Add downstream packages that depend on ExponentialFamilyProjection here
# Each entry runs as a separate parallel job
- { user: ReactiveBayes, repo: ReactiveMP.jl }
- { user: ReactiveBayes, repo: RxInfer.jl }
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: x64
- uses: julia-actions/julia-buildpkg@v1
- name: Clone Downstream
uses: actions/checkout@v6
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
path: downstream
- name: Load this and run the downstream tests
shell: julia --project=downstream {0}
run: |
using Pkg
try
# Force downstream to use this PR version of ExponentialFamilyProjection
Pkg.develop(PackageSpec(path=".")) # add this version
Pkg.update()
Pkg.test() # run downstream tests
catch err
err isa Pkg.Resolve.ResolverError || rethrow()
# If resolver fails, assume intentional breaking change (SemVer)
@info "Not compatible with this release. No problem." exception=err
exit(0) # Treat as success
end