|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | test: |
10 | | - name: ${{ matrix.package.repo }}/${{ matrix.package.group }} |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - env: |
13 | | - GROUP: ${{ matrix.package.group }} |
| 10 | + name: ${{ matrix.package }} |
| 11 | + runs-on: ubuntu-latest |
14 | 12 | strategy: |
15 | 13 | fail-fast: false |
16 | 14 | matrix: |
17 | | - julia-version: [1] |
18 | | - os: [ubuntu-latest] |
19 | 15 | package: |
20 | | - - {user: JuliaIO, repo: CodecZlib.jl, group: TranscodingStreams} |
21 | | - - {user: JuliaIO, repo: CodecLz4.jl, group: TranscodingStreams} |
22 | | - - {user: JuliaIO, repo: CodecZstd.jl, group: TranscodingStreams} |
23 | | - - {user: JuliaIO, repo: CodecBase.jl, group: TranscodingStreams} |
24 | | - - {user: JuliaIO, repo: CodecXz.jl, group: TranscodingStreams} |
25 | | - - {user: JuliaIO, repo: CodecBzip2.jl, group: TranscodingStreams} |
26 | | - - {user: JuliaIO, repo: ZipArchives.jl, group: TranscodingStreams} |
27 | | - - {user: JuliaIO, repo: JLD2.jl, group: TranscodingStreams} |
28 | | - - {user: BioJulia, repo: Automa.jl, group: TranscodingStreams} |
29 | | - - {user: BioJulia, repo: FASTX.jl, group: TranscodingStreams} |
30 | | - - {user: JuliaVTK, repo: WriteVTK.jl, group: TranscodingStreams} |
31 | | - - {user: JuliaData, repo: RData.jl, group: TranscodingStreams} |
32 | | - - {user: JuliaWeb, repo: HTTP.jl, group: TranscodingStreams} |
33 | | - - {user: reallyasi9, repo: ZipStreams.jl, group: TranscodingStreams} |
| 16 | + - 'CodecZlib' |
| 17 | + - 'CodecLz4' |
| 18 | + - 'CodecZstd' |
| 19 | + - 'CodecBase' |
| 20 | + - 'CodecXz' |
| 21 | + - 'CodecBzip2' |
| 22 | + - 'ZipArchives' |
| 23 | + - 'JLD2' |
| 24 | + - 'Automa' |
| 25 | + - 'FASTX' |
| 26 | + - 'WriteVTK' |
| 27 | + - 'RData' |
| 28 | + - 'HTTP' |
| 29 | + - 'ZipStreams' |
34 | 30 | steps: |
35 | 31 | - uses: actions/checkout@v4 |
36 | 32 | - uses: julia-actions/setup-julia@v2 |
37 | 33 | with: |
38 | | - version: ${{ matrix.julia-version }} |
| 34 | + version: 1 |
39 | 35 | arch: x64 |
40 | | - - name: Clone Downstream |
41 | | - uses: actions/checkout@v4 |
42 | | - with: |
43 | | - repository: ${{ matrix.package.user }}/${{ matrix.package.repo }} |
44 | | - path: downstream |
| 36 | + show-versioninfo: true |
45 | 37 | - name: Load this and run the downstream tests |
46 | 38 | shell: julia --color=yes {0} |
47 | 39 | run: | |
48 | 40 | using Pkg |
49 | | - using TOML |
50 | 41 | Pkg.Registry.update() |
51 | 42 | Pkg.activate(;temp=true) |
52 | 43 | try |
53 | 44 | # force it to use this PR's version of the package and test package |
| 45 | + ENV["JULIA_PKG_DEVDIR"]= mktempdir() |
54 | 46 | Pkg.develop([ |
55 | | - PackageSpec(path="downstream"), |
| 47 | + PackageSpec(name="${{ matrix.package }}"), |
56 | 48 | PackageSpec(path="."), |
57 | 49 | PackageSpec(path="./lib/TestsForCodecPackages"), |
58 | 50 | ]) |
59 | 51 | # resolver may fail with main deps |
60 | 52 | Pkg.update() |
61 | | - p1 = joinpath("downstream", "JuliaProject.toml") |
62 | | - p2 = joinpath("downstream", "Project.toml") |
63 | | - proj_toml = isfile(p1) ? p1 : p2 |
64 | | - Pkg.test(TOML.parsefile(proj_toml)["name"]) # resolver may fail with test time deps |
| 53 | + Pkg.test("${{ matrix.package }}") # resolver may fail with test time deps |
65 | 54 | catch err |
66 | 55 | err isa Pkg.Resolve.ResolverError || rethrow() |
67 | 56 | # If we can't resolve that means this is incompatible by SemVer and this is fine. |
|
0 commit comments