-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.29 KB
/
main.yaml
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
name: mcbayes tests
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out github
uses: actions/checkout@v4
- name: Check out BridgeStan
uses: actions/checkout@v4
with:
repository: roualdes/bridgestan
submodules: recursive
ref: "v1.0.0"
path: bridgestan
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: '1.8'
- name: Stan build caching
uses: actions/cache@v4
id: stan-cache
with:
path: ./bridgestan/stan/
key: stan-${{ runner.os }}-${{ hashFiles('bridgestan/stan/src/stan/version.hpp') }}
- name: Cache julia artifacts (test_models)
uses: actions/cache@v4
id: julia-artifacts-cache
with:
path: ~/.julia/artifacts
key: julia-artifacts-${{ runner.os }}-${{ hashFiles('**/Project.toml', '**/Artifacts.toml') }}
- name: Install BridgeStan
run: julia --project=./test -e 'using Pkg; Pkg.develop(PackageSpec(path="bridgestan", subdir="julia")); Pkg.instantiate();'
- name: Run tests
run: julia --threads=2 --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.test()'