-
Notifications
You must be signed in to change notification settings - Fork 10
90 lines (83 loc) · 2.59 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CI
on:
merge_group:
pull_request:
push:
branches:
- main
tags:
- "*"
concurrency:
# Skip intermediate builds: all builds except for builds on the `main` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
jobs:
finalize:
timeout-minutes: 10
needs: [test, format]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
echo test: ${{ needs.test.result }}
echo test: ${{ needs.format.result }}
- run: exit 1
if: |
(needs.test.result != 'success') ||
(needs.format.result != 'success')
test:
permissions:
actions: write
contents: read
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
version:
- "1.6"
- "1.10"
os:
- ubuntu-latest
- macos-latest
- windows-latest
# macOS 1.6 seems to consistently stall on `Plots` notebooks. Skip this
# combination and test on a slightly newer macOS version instead.
exclude:
- version: "1.6"
os: macos-latest
include:
- version: "1.7"
os: macos-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
persist-credentials: false
- uses: julia-actions/setup-julia@58ad1cdde70774ab0693de31c3cd4e751b46aea2
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@207a5a0786d0263d27c287c7bc6dd54fec8bed64
- uses: julia-actions/julia-buildpkg@5484b0e27fa12452eb1deffe4fd40ff700c429b9
- uses: julia-actions/julia-runtest@79a7e100883947123f8263c5f06e6c0ea3eb972f
with:
depwarn: "yes"
- uses: julia-actions/julia-processcoverage@03114f09f119417c3242a9fb6e0b722676aedf38
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
with:
verbose: true
files: lcov.info
format:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
persist-credentials: false
- uses: julia-actions/setup-julia@58ad1cdde70774ab0693de31c3cd4e751b46aea2
with:
version: "1"
- run: |
julia --project=.ci -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
julia --project=.ci .ci/format.jl