|
1 | 1 | name: CI
|
2 | 2 | on:
|
3 |
| - pull_request: |
4 |
| - branches: |
5 |
| - - master |
6 | 3 | push:
|
7 | 4 | branches:
|
8 | 5 | - master
|
9 | 6 | tags: '*'
|
| 7 | + pull_request: |
| 8 | +concurrency: |
| 9 | + # Skip intermediate builds: always. |
| 10 | + # Cancel intermediate builds: only if it is a pull request build. |
| 11 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 12 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
10 | 13 | jobs:
|
11 | 14 | test:
|
12 | 15 | name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
|
13 | 16 | runs-on: ${{ matrix.os }}
|
14 |
| - continue-on-error: ${{ matrix.version == 'nightly' }} |
15 | 17 | strategy:
|
16 | 18 | fail-fast: false
|
17 | 19 | matrix:
|
18 | 20 | version:
|
19 |
| - - '1.6' # LTS |
20 |
| - - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. |
| 21 | + - '1.6' |
| 22 | + - '1' |
21 | 23 | - 'nightly'
|
22 | 24 | os:
|
23 | 25 | - ubuntu-latest
|
24 | 26 | arch:
|
25 | 27 | - x64
|
26 | 28 | steps:
|
27 |
| - - uses: actions/checkout@v2 |
| 29 | + - uses: actions/checkout@v3 |
28 | 30 | - uses: julia-actions/setup-julia@v1
|
29 | 31 | with:
|
30 | 32 | version: ${{ matrix.version }}
|
31 | 33 | arch: ${{ matrix.arch }}
|
32 |
| - - uses: actions/cache@v1 |
| 34 | + - uses: actions/cache@v3 |
33 | 35 | env:
|
34 | 36 | cache-name: cache-artifacts
|
35 | 37 | with:
|
|
40 | 42 | ${{ runner.os }}-test-
|
41 | 43 | ${{ runner.os }}-
|
42 | 44 | - uses: julia-actions/julia-buildpkg@v1
|
43 |
| - - uses: julia-actions/julia-runtest@v1 |
| 45 | + |
| 46 | + - name: "Run test without coverage report" |
| 47 | + uses: julia-actions/julia-runtest@v1 |
| 48 | + if: ${{ !contains(fromJson('["1", "1.6"]'), matrix.version) || matrix.os != 'ubuntu-latest' }} |
| 49 | + with: |
| 50 | + coverage: false |
| 51 | + |
| 52 | + - name: "Run test with coverage report" |
| 53 | + uses: julia-actions/julia-runtest@v1 |
| 54 | + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' |
44 | 55 | - uses: julia-actions/julia-processcoverage@v1
|
45 |
| - - uses: codecov/codecov-action@v1 |
| 56 | + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' |
| 57 | + - uses: codecov/codecov-action@v3 |
| 58 | + if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest' |
46 | 59 | with:
|
47 |
| - file: lcov.info |
| 60 | + files: lcov.info |
| 61 | + |
| 62 | + |
0 commit comments