Skip to content

Commit 31c4f1d

Browse files
committed
separate out LV tests
1 parent fdcabd8 commit 31c4f1d

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed

.github/workflows/Downstream.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Core}
2727
- {user: SciML, repo: OrdinaryDiffEq.jl, group: Interface}
2828
- {user: SciML, repo: DelayDiffEq.jl, group: Interface}
29-
- {user: JuliaSIMD, repo: VectorizationBase.jl, group: Interface}
30-
- {user: JuliaSIMD, repo: LoopVectorization.jl, group: Downstream3}
3129
steps:
3230
- uses: actions/checkout@v2
3331
- uses: julia-actions/setup-julia@v1

.github/workflows/LoopVecTests.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: LoopVecTests
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,1.6]
18+
os: [ubuntu-latest]
19+
package:
20+
- {user: JuliaSIMD, repo: VectorizationBase.jl, group: Interface}
21+
- {user: JuliaSIMD, repo: LoopVectorization.jl, group: Downstream3}
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: julia-actions/setup-julia@v1
25+
with:
26+
version: ${{ matrix.julia-version }}
27+
arch: x64
28+
- uses: julia-actions/julia-buildpkg@latest
29+
- name: Clone Downstream
30+
uses: actions/checkout@v2
31+
with:
32+
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
33+
path: downstream
34+
- name: Load this and run the downstream tests
35+
shell: julia --color=yes --project=downstream {0}
36+
run: |
37+
using Pkg
38+
try
39+
# force it to use this PR's version of the package
40+
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
41+
#Pkg.develop(Pkg.PackageSpec(path=joinpath(pwd(), "lib", "ArrayInterfaceCore")))
42+
Pkg.update()
43+
Pkg.test() # resolver may fail with test time deps
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

0 commit comments

Comments
 (0)