Skip to content

Commit 671a080

Browse files
add downstream
1 parent eddc9cb commit 671a080

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/Downstream.yml

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

0 commit comments

Comments
 (0)