Skip to content

Commit 375096e

Browse files
authored
Merge pull request #1555 from DhairyaLGandhi/dg/downstream
2 parents ef04fda + 2024f52 commit 375096e

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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: r3tex, repo: ObjectDetector.jl, group: All}
20+
- {user: chengchingwen, 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: Chemellia, repo: AtomicGraphNets.jl, group: All}
27+
- {user: SciML, repo: DiffEqFlux.jl, group: Layers}
28+
- {user: SciML, repo: NeuralPDE.jl, group: NNPDE}
29+
30+
if: contains(github.event.pull_request.labels.*.name, 'run downstream test')
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: julia-actions/setup-julia@v1
34+
with:
35+
version: ${{ matrix.julia-version }}
36+
arch: x64
37+
- uses: julia-actions/julia-buildpkg@latest
38+
- name: Clone Downstream
39+
uses: actions/checkout@v2
40+
with:
41+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
42+
path: downstream
43+
- name: Load this and run the downstream tests
44+
shell: julia --color=yes --project=downstream {0}
45+
run: |
46+
using Pkg
47+
try
48+
# force it to use this PR's version of the package
49+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
50+
Pkg.update()
51+
Pkg.test() # resolver may fail with test time deps
52+
catch err
53+
err isa Pkg.Resolve.ResolverError || rethrow()
54+
# If we can't resolve that means this is incompatible by SemVer and this is fine
55+
# It means we marked this as a breaking change, so we don't need to worry about
56+
# Mistakenly introducing a breaking change, as we have intentionally made one
57+
@info "Not compatible with this release. No problem." exception=err
58+
exit(0) # Exit immediately, as a success
59+
end

0 commit comments

Comments
 (0)