|
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: ChainRulesTestUtils.jl} |
19 | | - - {user: JuliaDiff, repo: ChainRules.jl} |
20 | | - - {user: JuliaMath, repo: SpecialFunctions.jl} |
21 | | - - {user: invenia, repo: BlockDiagonals.jl} |
22 | | - - {user: invenia, repo: PDMatsExtras.jl} |
23 | | - - {user: PumasAI, repo: DataInterpolations.jl} |
| 18 | + - {user: JuliaDiff, name: ChainRulesTestUtils} |
| 19 | + - {user: JuliaDiff, name: ChainRules} |
| 20 | + - {user: JuliaMath, name: SpecialFunctions} |
| 21 | + - {user: JuliaArrays, name: BlockDiagonals} |
| 22 | + - {user: invenia, name: PDMatsExtras} |
| 23 | + - {user: SciML, name: DataInterpolations} |
24 | 24 |
|
25 | 25 | steps: |
26 | 26 | - uses: actions/checkout@v4 |
27 | 27 | - uses: julia-actions/setup-julia@v2 |
28 | 28 | with: |
29 | 29 | version: ${{ matrix.julia-version }} |
30 | 30 | arch: x64 |
| 31 | + - uses: julia-actions/cache@v3 |
31 | 32 | - uses: julia-actions/julia-buildpkg@latest |
32 | 33 | - name: Clone Downstream |
33 | 34 | uses: actions/checkout@v4 |
34 | 35 | with: |
35 | | - repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} |
| 36 | + repository: ${{ matrix.package.user }}/${{ matrix.package.name }}.jl |
36 | 37 | path: downstream |
37 | 38 | - name: Load this and run the downstream tests |
38 | | - shell: julia --project=downstream {0} |
| 39 | + shell: julia --project=@temp {0} |
39 | 40 | run: | |
40 | 41 | using Pkg |
41 | 42 | try |
42 | 43 | # force it to use this PR's version of the package |
43 | | - Pkg.develop(PackageSpec(path=".")) # ResolverError with main deps may be thrown here |
| 44 | + Pkg.develop([PackageSpec(path="."), PackageSpec(path="downstream")]) # ResolverError with main deps may be thrown here |
44 | 45 | Pkg.update() |
45 | | - Pkg.test() # ResolverError with test deps may be thrown here (before test process starts) |
| 46 | + Pkg.test("${{ matrix.package.name }}") # ResolverError with test deps may be thrown here (before test process starts) |
46 | 47 | catch err |
47 | 48 | err isa Pkg.Resolve.ResolverError || rethrow() |
48 | 49 | # If we can't resolve that means this is incompatible by SemVer and this is fine |
|
0 commit comments