-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·98 lines (76 loc) · 2.43 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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: Tests
on:
push:
branches: [ master ]
pull_request:
jobs:
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: |
brew install llvm@14
echo 'export PATH="/usr/local/opt/llvm@14/bin:$PATH"' >> /Users/runner/.bash_profile
cd tests && make main.a && ./main.a
test-macos-clang18:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: |
brew install llvm@18
echo 'export PATH="/usr/local/opt/llvm@18/bin:$PATH"' >> /Users/runner/.bash_profile
cd tests && make main.a && ./main.a
test-ubuntu:
runs-on: ubuntu-latest
container: gvegayon/epiworld:latest
steps:
- uses: actions/checkout@v4
- name: Check
env:
OPENMP: -fopenmp
run: |
cd tests
make main.o
./main.o
test-epiworld-r:
runs-on: ubuntu-latest
container: rocker/r2u:latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: UofUEpiBio/epiworldR
path: ./r-pkg
- name: Getting epiworldR
run: |
install2.r knitr rmarkdown tinytest netplot igraph data.table
apt-get update && apt-get install -y --no-install-recommends pandoc
cp -r include/epiworld/ r-pkg/inst/include/epiworld/
R CMD build r-pkg
R CMD check --no-manual epiworldR_*.tar.gz
test-epiworld-r-valgrind:
runs-on: ubuntu-latest
container: rocker/r2u:latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: UofUEpiBio/epiworldR
path: ./r-pkg
- name: Getting epiworldR
run: |
install2.r knitr rmarkdown tinytest netplot igraph data.table
apt-get update && apt-get install -y --no-install-recommends \
pandoc valgrind
cp -r include/epiworld/ r-pkg/inst/include/epiworld/
R CMD build r-pkg
R CMD check --no-manual --use-valgrind epiworldR_*.tar.gz