Skip to content

Commit 71ba85f

Browse files
Create Downstream.yml
1 parent e2dc3cf commit 71ba85f

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/Downstream.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: IntegrationTest
2+
on:
3+
push:
4+
branches: [master]
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
GROUP: ${{ matrix.package.group }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
julia-version: ['1.10']
18+
os: [ubuntu-latest]
19+
package:
20+
- {user: JuliaSIMD, repo: LoopVectorization.jl, group: Core}
21+
- {user: JuliaSIMD, repo: Polyester.jl, group: Core}
22+
- {user: JuliaSIMD, repo: PolyesterWeave.jl, group: Core}
23+
- {user: JuliaLinearAlgebra, repo: RecursiveFactorization.jl, group: Core}
24+
- {user: JuliaSIMD, repo: VectorizationBase.jl, group: Core}
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: julia-actions/setup-julia@v2
29+
with:
30+
version: ${{ matrix.julia-version }}
31+
arch: x64
32+
- name: Clone Downstream
33+
uses: actions/checkout@v4
34+
with:
35+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
36+
path: downstream
37+
- name: Load this and run the downstream tests
38+
shell: julia --color=yes --project=downstream {0}
39+
run: |
40+
using Pkg
41+
try
42+
Pkg.develop(map(path ->Pkg.PackageSpec.(;path="lib/$(path)"), readdir("./lib")));
43+
Pkg.test(coverage=true) # resolver may fail with test time depsAdd commentMore actions
44+
catch err
45+
err isa Pkg.Resolve.ResolverError || rethrow()
46+
# If we can't resolve that means this is incompatible by SemVer and this is fine
47+
# It means we marked this as a breaking change, so we don't need to worry about
48+
# mistakenly introducing a breaking change, as we have intentionally made one
49+
@info "Not compatible with this release. No problem." exception=err
50+
exit(0) # Exit immediately, as a success
51+
end
52+
- uses: julia-actions/julia-processcoverage@v1
53+
- uses: codecov/codecov-action@v5
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
files: lcov.info
57+
fail_ci_if_error: false

0 commit comments

Comments
 (0)