-
Notifications
You must be signed in to change notification settings - Fork 5
121 lines (116 loc) · 4.52 KB
/
test-all.yaml
File metadata and controls
121 lines (116 loc) · 4.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
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: 'yes'
run_tensorOps:
description: 'Run tensorOps tests'
required: false
default: 'yes'
jobs:
test-nCompile:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == '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")
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'
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/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'
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}