Skip to content

Commit 7ec00d7

Browse files
authored
Update ci.yaml
1 parent 928cc5d commit 7ec00d7

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,37 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- master
63
push:
74
branches:
85
- master
96
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/') }}
1013
jobs:
1114
test:
1215
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1316
runs-on: ${{ matrix.os }}
14-
continue-on-error: ${{ matrix.version == 'nightly' }}
1517
strategy:
1618
fail-fast: false
1719
matrix:
1820
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'
2123
- 'nightly'
2224
os:
2325
- ubuntu-latest
2426
arch:
2527
- x64
2628
steps:
27-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
2830
- uses: julia-actions/setup-julia@v1
2931
with:
3032
version: ${{ matrix.version }}
3133
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
34+
- uses: actions/cache@v3
3335
env:
3436
cache-name: cache-artifacts
3537
with:
@@ -40,8 +42,21 @@ jobs:
4042
${{ runner.os }}-test-
4143
${{ runner.os }}-
4244
- 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'
4455
- 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'
4659
with:
47-
file: lcov.info
60+
files: lcov.info
61+
62+

0 commit comments

Comments
 (0)