-
Notifications
You must be signed in to change notification settings - Fork 5
161 lines (155 loc) · 6.01 KB
/
test-all.yaml
File metadata and controls
161 lines (155 loc) · 6.01 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
name: Run all tests
# Trying to use r2u container, thanks to Dirk at https://dirk.eddelbuettel.com/blog/2023/07/23/
on:
workflow_dispatch:
inputs:
run_tests:
description: 'Run all tests'
required: true
default: 'no'
run_nCompile:
description: 'Run nCompile tests'
required: false
default: 'yes'
run_nCompile_features:
description: 'Run nCompile feature tests'
required: false
default: 'yes'
run_nClass:
description: 'Run nClass tests'
required: false
default: 'yes'
run_math:
description: 'Run math tests'
required: false
default: 'no'
run_tensorOps:
description: 'Run tensorOps tests'
required: false
default: 'no'
jobs:
test-nCompile:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_nCompile == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
run: R -q -e 'sessionInfo()'
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran(c("inline", "nimble"))'
- name: Build Package
run: |
R CMD build nCompiler
R CMD INSTALL --install-tests nCompiler_*.tar.gz
- name: Run nCompile and other tests
run: |
library(nCompiler)
testthat::test_dir("nCompiler/tests/testthat/uncompiled_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/nCompile_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/cpp_tests", reporter = "summary")
shell: Rscript {0}
test-nCompile-features:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_nCompile_features == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
run: R -q -e 'sessionInfo()'
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran("inline")'
- name: Build Package
run: |
R CMD build nCompiler
R CMD INSTALL --install-tests nCompiler_*.tar.gz
- name: Run nCompile and other tests
run: |
library(nCompiler)
testthat::test_dir("nCompiler/tests/testthat/predefined_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/specificOp_tests", reporter = "summary")
shell: Rscript {0}
test-nClass:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_nClass == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
run: R -q -e 'sessionInfo()'
#- name: System Dependencies
# # can be used to install e.g. cmake or other build dependencies
# run: apt update -qq && apt install --yes --no-install-recommends cmake git
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran(c("inline", "nimble"))'
- name: Build Package
run: |
R CMD build nCompiler
R CMD INSTALL --install-tests nCompiler_*.tar.gz
- name: Run nCompile and other tests
run: |
library(nCompiler)
testthat::test_dir("nCompiler/tests/testthat/nimble_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/nClass_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/types_tests", reporter = "summary")
testthat::test_dir("nCompiler/tests/testthat/serialization_tests", reporter = "summary")
shell: Rscript {0}
test-math:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_math == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
run: R -q -e 'sessionInfo()'
#- name: System Dependencies
# # can be used to install e.g. cmake or other build dependencies
# run: apt update -qq && apt install --yes --no-install-recommends cmake git
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran("inline")'
- name: Build Package
run: |
R CMD build nCompiler
R CMD INSTALL --install-tests nCompiler_*.tar.gz
- name: Run nCompile and other tests
run: |
library(nCompiler)
testthat::test_dir("nCompiler/tests/testthat/math_tests", reporter = "summary")
shell: Rscript {0}
test-tensorOps:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_tensorOps == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
run: R -q -e 'sessionInfo()'
#- name: System Dependencies
# # can be used to install e.g. cmake or other build dependencies
# run: apt update -qq && apt install --yes --no-install-recommends cmake git
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran(c("inline", "nimble"))'
- name: Build Package
run: |
R CMD build nCompiler
R CMD INSTALL --install-tests nCompiler_*.tar.gz
- name: Run nCompile and other tests
run: |
library(nCompiler)
testthat::test_dir("nCompiler/tests/testthat/tensorOps_tests", reporter = "summary")
shell: Rscript {0}