-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.64 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
name: CI
on:
push:
branches:
- dev
- main
pull_request:
workflow_dispatch:
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
julia-version:
- '1.10'
- '1.11-nightly'
- 'nightly'
julia-arch: [aarch64, x64]
os: [ubuntu-latest, macOS-latest]
exclude:
- os: ubuntu-latest
julia-arch: aarch64
steps:
- uses: actions/checkout@v4
- name: "Setup julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v1
- name: "Build package"
uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: ${{ matrix.julia-version == '1.10' }}
coverage: ${{ matrix.julia-version == '1.10' }}
depwarn: ${{ matrix.depwarn == 'depwarn=error' && 'error' || 'no' }}
# - name: "Process code coverage"
# if: matrix.julia-version == '1.10' && matrix.depwarn != 'depwarn=error'
# uses: julia-actions/julia-processcoverage@v1
# with:
# directories: src,experimental
# - name: "Upload coverage data to Codecov"
# if: matrix.julia-version == '1.10' && matrix.depwarn != 'depwarn=error'
# continue-on-error: true
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}