-
Notifications
You must be signed in to change notification settings - Fork 9
80 lines (76 loc) · 2.02 KB
/
Runtests.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
name: Runtests
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/Runtests.yml'
- 'src/**'
- 'ext/**'
- 'test/**'
- 'Project.toml'
pull_request:
branches:
- 'main'
paths:
- '.github/workflows/Runtests.yml'
- 'src/**'
- 'ext/**'
- 'test/**'
- 'Project.toml'
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.node.os }} ${{ matrix.node.arch }} ( ${{ matrix.group }} )
runs-on: ${{ matrix.node.os }}
permissions: # needed to allow julia-actions/cache to delete old caches that it has created
actions: write
contents: read
if: ${{ !github.event.pull_request.draft }}
strategy:
fail-fast: false
matrix:
# for core tests (latest and oldest supported versions)
julia-version:
- '1.10' # oldest
- '1' # latest
node:
- os: 'ubuntu-latest'
arch: 'x64'
- os: 'windows-latest'
arch: 'x64'
- os: 'macOS-latest'
arch: 'arm64'
group:
- 'Core'
# include:
# for core tests (intermediate versions)
# - version: '1.x'
# node:
# os: 'ubuntu-latest'
# arch: 'x64'
# group: 'Core'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.node.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
- uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
fail_ci_if_error: false