-
Notifications
You must be signed in to change notification settings - Fork 5
114 lines (97 loc) · 3.24 KB
/
test-suites.yml
File metadata and controls
114 lines (97 loc) · 3.24 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
# .github/workflows/test-suites.yml
name: Test Suites
on:
push:
branches: [ main, master, devel ]
pull_request:
branches: [ main, master, devel ]
jobs:
# Job 1: nCompile and specific operator tests
test-nCompile:
runs-on: ubuntu-latest
name: nCompile and specific operator tests
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libcurl4-openssl-dev \
libssl-dev
- name: Run nCompile and other tests
run: |
testthat::test_dir("tests/testthat/uncompiled_tests", reporter = "progress")
testthat::test_dir("tests/testthat/nCompile_tests", reporter = "progress")
testthat::test_dir("tests/testthat/cpp_tests", reporter = "progress")
testthat::test_dir("tests/testthat/specificOp_tests", reporter = "progress")
shell: Rscript {0}
# Job 2: nClass, types and serialization tests
test-nClass:
runs-on: ubuntu-latest
name: nClass, types and serialization tests
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libcurl4-openssl-dev \
libssl-dev
- name: Run nClass, types and serialization tests
run: |
testthat::test_dir("tests/testthat/nClass_tests", reporter = "progress")
testthat::test_dir("tests/testthat/types_tests", reporter = "progress")
testthat::test_dir("tests/testthat/serialization_tests", reporter = "progress")
shell: Rscript {0}
# Job 3: Math tests
test-math:
runs-on: ubuntu-latest
name: Math Tests
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libcurl4-openssl-dev \
libssl-dev
- name: Run Math tests
run: |
testthat::test_dir("tests/testthat/math_tests", reporter = "progress")
shell: Rscript {0}
# Job 4: tensorOps
test-tensorOps:
runs-on: ubuntu-latest
name: TensorOps Tests
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libcurl4-openssl-dev \
libssl-dev
- name: Run TensorOps tests
run: |
testthat::test_dir("tests/testthat/tensorOps_tests", reporter = "progress")
shell: Rscript {0}