-
Notifications
You must be signed in to change notification settings - Fork 41
135 lines (111 loc) · 3.52 KB
/
Copy pathCI.yml
File metadata and controls
135 lines (111 loc) · 3.52 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: CI
on:
push:
branches:
- main
- backport-*
pull_request:
merge_group:
types: [checks_requested]
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
# Cancel existing tests on the same PR if a new commit is added to a pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
runs-on: ${{ matrix.runner.os }}
strategy:
fail-fast: false
matrix:
runner:
# Current stable version
- version: '1'
os: ubuntu-latest
num_threads: 2
# Minimum supported version
- version: 'min'
os: ubuntu-latest
num_threads: 2
# 1.11
- version: '1.11'
os: ubuntu-latest
num_threads: 2
# Single-threaded
- version: '1'
os: ubuntu-latest
num_threads: 1
# Windows
- version: '1'
os: windows-latest
num_threads: 2
# macOS
- version: '1'
os: macos-latest
num_threads: 2
test_group:
- Group1
- Group2
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.runner.version }}
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.test_group }}
JULIA_NUM_THREADS: ${{ matrix.runner.num_threads }}
# Only run Aqua tests on latest version
AQUA: ${{ matrix.runner.version == '1' && 'true' || 'false' }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v7
if: github.actor != 'dependabot[bot]'
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
reversediff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: "1"
- uses: julia-actions/cache@v3
- name: Run AD with ReverseDiff on demo models
working-directory: test/ext/DynamicPPLReverseDiffExt
run: |
julia --project=. --color=yes -e 'using Pkg; Pkg.instantiate()'
julia --project=. --color=yes --code-coverage=user main.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v7
if: github.actor != 'dependabot[bot]'
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
marginallogdensities:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: "1"
- uses: julia-actions/cache@v3
- name: Run MarginalLogDensities integration tests
working-directory: test/ext/DynamicPPLMarginalLogDensitiesExt
run: |
julia --project=. --color=yes -e 'using Pkg; Pkg.instantiate()'
julia --project=. --color=yes --code-coverage=user main.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v7
if: github.actor != 'dependabot[bot]'
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true