From 31f7eeede1fe5f7185cc355d00c831ff91f95cc3 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sun, 4 Jul 2021 16:52:05 -0400 Subject: [PATCH 1/3] add integration tests --- .github/workflows/downstream.yml | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/downstream.yml diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml new file mode 100644 index 0000000..4767824 --- /dev/null +++ b/.github/workflows/downstream.yml @@ -0,0 +1,50 @@ +name: IntegrationTest +on: + push: + branches: [master] + tags: [v*] + pull_request: + +jobs: + test: + name: ${{ matrix.package.repo }}/${{ matrix.package.group }} + runs-on: ${{ matrix.os }} + env: + GROUP: ${{ matrix.package.group }} + strategy: + fail-fast: false + matrix: + julia-version: [1] + os: [ubuntu-latest] + package: + - {user: JuliaDiff, repo: ForwardDiff.jl, group: All} + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: x64 + - uses: julia-actions/julia-buildpkg@latest + - name: Clone Downstream + uses: actions/checkout@v2 + with: + repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} + path: downstream + - name: Load this and run the downstream tests + shell: julia --color=yes --project=downstream {0} + run: | + using Pkg + try + # force it to use this PR's version of the package + Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps + Pkg.update() + Pkg.test() # resolver may fail with test time deps + catch err + err isa Pkg.Resolve.ResolverError || rethrow() + # If we can't resolve that means this is incompatible by SemVer and this is fine + # It means we marked this as a breaking change, so we don't need to worry about + # Mistakenly introducing a breaking change, as we have intentionally made one + @info "Not compatible with this release. No problem." exception=err + exit(0) # Exit immediately, as a success + end From 0d5260ec2afc40a24be92d48f882e03993b5c900 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sun, 4 Jul 2021 17:00:31 -0400 Subject: [PATCH 2/3] a few more packages --- .github/workflows/downstream.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 4767824..2356cbe 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -18,6 +18,9 @@ jobs: os: [ubuntu-latest] package: - {user: JuliaDiff, repo: ForwardDiff.jl, group: All} + - {user: FluxML, repo: Tracker.jl, group: All} + - {user: JuliaSymbolics, repo: Symbolics.jl, group: All} + - {user: SciML, repo: ModelingToolkit.jl, group: All} steps: - uses: actions/checkout@v2 From 14ca2a643f8351f0043f393eff72cd6bb9d5f1bb Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sun, 4 Jul 2021 20:06:05 -0400 Subject: [PATCH 3/3] a few more --- .github/workflows/downstream.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 2356cbe..322ca50 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -19,8 +19,11 @@ jobs: package: - {user: JuliaDiff, repo: ForwardDiff.jl, group: All} - {user: FluxML, repo: Tracker.jl, group: All} + - {user: FluxML, repo: Zygote.jl, group: All} + - {user: invenia, repo: Nabla.jl, group: All} - {user: JuliaSymbolics, repo: Symbolics.jl, group: All} - {user: SciML, repo: ModelingToolkit.jl, group: All} + - {user: PSORLab, repo: EAGO.jl, group: All} steps: - uses: actions/checkout@v2