|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | test: |
10 | | - name: ${{ matrix.package.repo }} |
| 10 | + name: ${{ matrix.package.name }} |
11 | 11 | runs-on: ${{ matrix.os }} |
12 | 12 | strategy: |
13 | 13 | fail-fast: false |
14 | 14 | matrix: |
15 | 15 | julia-version: [1] |
16 | 16 | os: [ubuntu-latest] |
17 | 17 | package: |
18 | | - - {user: JuliaDiff, repo: ChainRules.jl} |
19 | | - - {user: JuliaMath, repo: SpecialFunctions.jl} |
20 | | - - {user: invenia, repo: BlockDiagonals.jl} |
| 18 | + - {user: JuliaDiff, name: ChainRules} |
| 19 | + - {user: JuliaMath, name: SpecialFunctions} |
| 20 | + - {user: invenia, name: BlockDiagonals} |
21 | 21 | steps: |
22 | 22 | - uses: actions/checkout@v2 |
23 | 23 | - uses: julia-actions/setup-julia@v1 |
24 | 24 | with: |
25 | 25 | version: ${{ matrix.julia-version }} |
26 | 26 | arch: x64 |
| 27 | + - uses: julia-actions/cache@v3 |
27 | 28 | - uses: julia-actions/julia-buildpkg@latest |
28 | 29 | - name: Clone Downstream |
29 | 30 | uses: actions/checkout@v2 |
30 | 31 | with: |
31 | | - repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} |
| 32 | + repository: ${{ matrix.package.user }}/${{ matrix.package.name }}.jl |
32 | 33 | path: downstream |
33 | 34 | - name: Load this and run the downstream tests |
34 | | - shell: julia --project=downstream {0} |
| 35 | + shell: julia --project=@temp {0} |
35 | 36 | run: | |
36 | 37 | using Pkg |
37 | 38 | try |
38 | 39 | # force it to use this PR's version of the package |
39 | | - Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps |
| 40 | + Pkg.develop([PackageSpec(path="."), PackageSpec(path="downstream")]) # resolver may fail with main deps |
40 | 41 | Pkg.update() |
41 | | - Pkg.test() # resolver may fail with test time deps |
| 42 | + Pkg.test("${{ matrix.package.name }}") # resolver may fail with test time deps |
42 | 43 | catch err |
43 | 44 | err isa Pkg.Resolve.ResolverError || rethrow() |
44 | 45 | # If we can't resolve that means this is incompatible by SemVer and this is fine |
|
0 commit comments