Repository navigation
73 lines (62 loc) · 2.14 KB
/
Copy pathCI.yml
File metadata and controls
73 lines (62 loc) · 2.14 KB
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
name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
id-token: write # Codecov authenticates the upload through OIDC; no token secret.
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - MO_FAST=${{ matrix.fast }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
# Fast suite on every supported minor release (DEC-018).
- { version: "1.10", os: ubuntu-latest, fast: "1", coverage: false }
- { version: "1.11", os: ubuntu-latest, fast: "1", coverage: false }
- { version: "1.12", os: ubuntu-latest, fast: "1", coverage: false }
- { version: "1", os: ubuntu-latest, fast: "1", coverage: false }
# Fast suite on the current stable release for the other platforms.
- { version: "1", os: windows-latest, fast: "1", coverage: false }
- { version: "1", os: macos-latest, fast: "1", coverage: false }
# Full dimension set on the LTS, which runs it fastest; coverage is measured here.
- { version: "1.10", os: ubuntu-latest, fast: "0", coverage: true }
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- name: Cache Julia artifacts
uses: julia-actions/cache@v2
- name: Build package
uses: julia-actions/julia-buildpkg@v1
- name: Run tests
uses: julia-actions/julia-runtest@v1
with:
coverage: ${{ matrix.coverage }}
env:
MO_FAST: ${{ matrix.fast }}
- name: Process coverage
if: matrix.coverage
uses: julia-actions/julia-processcoverage@v1
- name: Upload coverage to Codecov
if: matrix.coverage
uses: codecov/codecov-action@v5
with:
files: lcov.info
use_oidc: true
fail_ci_if_error: false