-
-
Notifications
You must be signed in to change notification settings - Fork 195
79 lines (79 loc) · 2.17 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
name: CI
on:
pull_request:
branches:
- 'master'
- 'release-*'
push:
branches:
- 'master'
- 'release-*'
tags: '*'
concurrency:
group: ${{ github.head_ref || github.ref_name || github.run_id }}
cancel-in-progress: true
jobs:
ci_started:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- run: exit 0
test:
timeout-minutes: 90
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 20 # leave space for other runs in the JuliaLang org, given these tests are long
fail-fast: false
matrix:
julia-version:
- '1.6'
- '1.9'
- '1.10'
- 'nightly'
julia-arch:
- 'x64'
- 'x86'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
coverage:
- 'true'
- 'false' # needed for 1.9+ to test from a session using pkgimages
exclude:
- os: macOS-latest
julia-arch: x86
- julia-version: '1.6'
coverage: 'false'
- julia-version: '1.7'
coverage: 'false'
- julia-version: '1.8'
coverage: 'false'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-runtest@latest
with:
coverage: ${{ matrix.coverage }}
- uses: julia-actions/julia-processcoverage@latest
- uses: codecov/codecov-action@v4
with:
file: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- name: Build and deploy docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); include("docs/make.jl")'