-
-
Notifications
You must be signed in to change notification settings - Fork 354
121 lines (108 loc) · 3.31 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: ci
on:
workflow_dispatch:
pull_request:
push:
branches: [master, v2]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
ci:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
JULIA_CONDAPKG_BACKEND: MicroMamba
MPLBACKEND: agg
GKS_ENCODING: utf8
GKSwstype: nul
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1' # latest stable
- '1.10' # minimal declared julia compat in `Project.toml`
experimental:
- false
os: [ubuntu-latest, windows-latest]
arch: [x64]
include:
- os: ubuntu-latest
experimental: true
version: 'pre' # upcoming julia version (`alpha`, `beta` or `rc`)
- os: macOS-latest
arch: aarch64
version: '1'
experimental: false
steps:
- uses: actions/checkout@v4
- name: Ubuntu LaTeX dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get -y update
sudo apt-get -y install g++ gnuplot poppler-utils texlive-{latex-base,latex-extra,luatex}
sudo fc-cache -vr
- name: Set LD_PRELOAD
if: startsWith(matrix.os, 'ubuntu')
run: echo "LD_PRELOAD=$(g++ --print-file-name=libstdc++.so)" >> $GITHUB_ENV
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Develop all Plots packages
env:
JULIA_PKG_PRECOMPILE_AUTO: 0
shell: julia --color=yes {0}
run: |
using Pkg
Pkg.develop([
(; path="./RecipesBase"),
(; path="./RecipesPipeline"),
(; path="./PlotsBase"),
(; path="."),
(; path="./GraphRecipes"),
(; path="./StatsPlots"),
(; path="./PlotThemes"),
])
- name: Install conda based matplotlib
env:
JULIA_PKG_PRECOMPILE_AUTO: 0
run: julia --color=yes ci/matplotlib.jl
- name: Test all Plots packages
timeout-minutes: 60
run: |
cmd=(julia --color=yes)
if [ "$RUNNER_OS" == "Linux" ]; then
cmd=(xvfb-run ${cmd[@]})
fi
echo ${cmd[@]}
${cmd[@]} -e 'using Pkg; Pkg.test([
"RecipesBase",
"RecipesPipeline",
"PlotsBase",
"Plots",
"GraphRecipes",
"StatsPlots",
"PlotThemes",
]; coverage=true)'
- uses: julia-actions/julia-processcoverage@latest
if: startsWith(matrix.os, 'ubuntu')
with:
directories: RecipesBase/src,RecipesPipeline/src,PlotsBase/src,src
- uses: codecov/codecov-action@v4
if: startsWith(matrix.os, 'ubuntu')
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
file: lcov.info
Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci