Skip to content

Commit b7a2e48

Browse files
devmotionphipsgabler
authored andcommitted
Add integration test
1 parent 5a1fcc6 commit b7a2e48

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/IntegrationTest.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: IntegrationTest
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: ${{ matrix.package.repo }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
package:
17+
- {user: TuringLang, repo: DynamicPPL.jl}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: julia-actions/setup-julia@v1
21+
with:
22+
version: 1
23+
arch: x64
24+
- uses: julia-actions/julia-buildpkg@latest
25+
- name: Clone Downstream
26+
uses: actions/checkout@v2
27+
with:
28+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
29+
path: downstream
30+
- name: Load this and run the downstream tests
31+
shell: julia --color=yes --project=downstream {0}
32+
run: |
33+
using Pkg
34+
try
35+
# force it to use this PR's version of the package
36+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
37+
Pkg.update()
38+
Pkg.test() # resolver may fail with test time deps
39+
catch err
40+
err isa Pkg.Resolve.ResolverError || rethrow()
41+
# If we can't resolve that means this is incompatible by SemVer and this is fine
42+
# It means we marked this as a breaking change, so we don't need to worry about
43+
# Mistakenly introducing a breaking change, as we have intentionally made one
44+
@info "Not compatible with this release. No problem." exception=err
45+
exit(0) # Exit immediately, as a success
46+
end

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# AbstractPPL.jl
22

33
[![CI](https://github.com/TuringLang/AbstractPPL.jl/workflows/CI/badge.svg?branch=master)](https://github.com/TuringLang/AbstractPPL.jl/actions?query=workflow%3ACI+branch%3Amaster)
4+
[![IntegrationTest](https://github.com/TuringLang/AbstractPPL.jl/workflows/IntegrationTest/badge.svg?branch=master)](https://github.com/TuringLang/AbstractPPL.jl/actions?query=workflow%3AIntegrationTest+branch%3Amaster)
45
[![Coverage Status](https://coveralls.io/repos/github/TuringLang/AbstractPPL.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/AbstractPPL.jl?branch=master)
56
[![Codecov](https://codecov.io/gh/TuringLang/AbstractPPL.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/TuringLang/AbstractPPL.jl)
67

0 commit comments

Comments
 (0)