Repository navigation
87 lines (80 loc) · 2.77 KB
/
Copy pathTest.yml
File metadata and controls
87 lines (80 loc) · 2.77 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
release_test:
name: Julia ${{ matrix.version }} ${{ matrix.llvm_args }}${{ matrix.coverage == 'false' && ' (no coverage)' || '' }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
version: ['1.10', '1.11', '1.12', '1.13', 'nightly']
os: [ubuntu-24.04, ubuntu-24.04-arm, macOS-15, windows-2025]
llvm_args: ['']
coverage: ['true']
include:
# code coverage recompiles the package instead of using its precompiled code,
# which hides bugs in how that code interacts with methods back-ends define
- version: '1.12'
os: 'ubuntu-24.04'
llvm_args: ''
coverage: 'false'
# starting with Julia 1.10, we can enable opaque pointers
# from Julia 1.12 on, this is the default.
- version: '1.10'
os: 'ubuntu-24.04'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'ubuntu-24.04-arm'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'macOS-15'
llvm_args: '--opaque-pointers'
- version: '1.10'
os: 'windows-2025'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'ubuntu-24.04'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'ubuntu-24.04-arm'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'macOS-15'
llvm_args: '--opaque-pointers'
- version: '1.11'
os: 'windows-2025'
llvm_args: '--opaque-pointers'
steps:
- uses: actions/checkout@v7
- name: Install Julia
uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
- name: Set-up cache
uses: julia-actions/cache@v3
- name: Run tests
uses: julia-actions/julia-runtest@v1
with:
coverage: ${{ matrix.coverage != 'false' }}
env:
JULIA_LLVM_ARGS: ${{ matrix.llvm_args }}
- name: Process coverage
# CoverageTools 1.4.1 uses a PkgLoadSpec field renamed in Julia 1.14.
if: matrix.version != 'nightly' && matrix.coverage != 'false'
uses: julia-actions/julia-processcoverage@v1
- name: Submit coverage
if: matrix.version != 'nightly' && matrix.coverage != 'false'
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: lcov.info