|
4 | 4 | push:
|
5 | 5 | branches:
|
6 | 6 | - master
|
| 7 | + - backport-* |
7 | 8 | pull_request:
|
8 | 9 | branches:
|
9 | 10 | - master
|
| 11 | + - backport-* |
10 | 12 | merge_group:
|
11 | 13 | types: [checks_requested]
|
12 | 14 |
|
| 15 | +# needed to allow julia-actions/cache to delete old caches that it has created |
| 16 | +permissions: |
| 17 | + actions: write |
| 18 | + contents: read |
| 19 | + |
| 20 | +# Cancel existing tests on the same PR if a new commit is added to a pull request |
| 21 | +concurrency: |
| 22 | + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
| 23 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 24 | + |
13 | 25 | jobs:
|
14 | 26 | test:
|
15 |
| - runs-on: ${{ matrix.os }} |
| 27 | + runs-on: ${{ matrix.runner.os }} |
16 | 28 | strategy:
|
| 29 | + fail-fast: false |
| 30 | + |
17 | 31 | matrix:
|
18 |
| - version: |
19 |
| - - '1.6' # minimum supported version |
20 |
| - - '1' # current stable version |
21 |
| - os: |
22 |
| - - ubuntu-latest |
23 |
| - arch: |
24 |
| - - x64 |
25 |
| - num_threads: |
26 |
| - - 1 |
27 |
| - - 2 |
28 |
| - include: |
| 32 | + runner: |
| 33 | + # Current stable version |
| 34 | + - version: '1' |
| 35 | + os: ubuntu-latest |
| 36 | + arch: x64 |
| 37 | + num_threads: 2 |
| 38 | + # Minimum supported version |
| 39 | + - version: 'min' |
| 40 | + os: ubuntu-latest |
| 41 | + arch: x64 |
| 42 | + num_threads: 2 |
| 43 | + # Single-threaded |
| 44 | + - version: '1' |
| 45 | + os: ubuntu-latest |
| 46 | + arch: x64 |
| 47 | + num_threads: 1 |
| 48 | + # Minimum supported version, single-threaded |
| 49 | + - version: 'min' |
| 50 | + os: ubuntu-latest |
| 51 | + arch: x64 |
| 52 | + num_threads: 1 |
| 53 | + # x86 |
29 | 54 | - version: '1'
|
30 | 55 | os: ubuntu-latest
|
31 | 56 | arch: x86
|
32 | 57 | num_threads: 2
|
| 58 | + # Windows |
33 | 59 | - version: '1'
|
34 | 60 | os: windows-latest
|
35 | 61 | arch: x64
|
36 | 62 | num_threads: 2
|
| 63 | + # macOS |
37 | 64 | - version: '1'
|
38 |
| - os: macOS-latest |
39 |
| - arch: x64 |
| 65 | + os: macos-latest |
| 66 | + arch: aarch64 |
40 | 67 | num_threads: 2
|
| 68 | + test_group: |
| 69 | + - Group1 |
| 70 | + - Group2 |
| 71 | + |
41 | 72 | steps:
|
42 |
| - - uses: actions/checkout@v2 |
43 |
| - - uses: julia-actions/setup-julia@v1 |
44 |
| - with: |
45 |
| - version: ${{ matrix.version }} |
46 |
| - arch: ${{ matrix.arch }} |
47 |
| - - uses: actions/cache@v1 |
48 |
| - env: |
49 |
| - cache-name: cache-artifacts |
50 |
| - with: |
51 |
| - path: ~/.julia/artifacts |
52 |
| - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
53 |
| - restore-keys: | |
54 |
| - ${{ runner.os }}-test-${{ env.cache-name }}- |
55 |
| - ${{ runner.os }}-test- |
56 |
| - ${{ runner.os }}- |
57 |
| - - uses: julia-actions/julia-buildpkg@latest |
58 |
| - - uses: julia-actions/julia-runtest@latest |
| 73 | + - uses: actions/checkout@v4 |
| 74 | + |
| 75 | + - uses: julia-actions/setup-julia@v2 |
59 | 76 | with:
|
60 |
| - coverage: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 }} |
| 77 | + version: ${{ matrix.runner.version }} |
| 78 | + arch: ${{ matrix.runner.arch }} |
| 79 | + |
| 80 | + - uses: julia-actions/cache@v2 |
| 81 | + |
| 82 | + - uses: julia-actions/julia-buildpkg@v1 |
| 83 | + |
| 84 | + - uses: julia-actions/julia-runtest@v1 |
61 | 85 | env:
|
62 |
| - GROUP: All |
63 |
| - JULIA_NUM_THREADS: ${{ matrix.num_threads }} |
| 86 | + GROUP: ${{ matrix.test_group }} |
| 87 | + JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }} |
| 88 | + |
64 | 89 | - uses: julia-actions/julia-processcoverage@v1
|
65 |
| - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 |
66 |
| - - uses: codecov/codecov-action@v1 |
67 |
| - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 |
| 90 | + |
| 91 | + - uses: codecov/codecov-action@v5 |
68 | 92 | with:
|
69 |
| - file: lcov.info |
70 |
| - - uses: coverallsapp/github-action@master |
71 |
| - if: matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 1 |
| 93 | + files: lcov.info |
| 94 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 95 | + fail_ci_if_error: true |
| 96 | + |
| 97 | + - uses: coverallsapp/github-action@v2 |
72 | 98 | with:
|
73 | 99 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
74 | 100 | path-to-lcov: lcov.info
|
0 commit comments