Skip to content

Commit 4865755

Browse files
committed
testing and fixes for predefined nFunctions and nClasses
1 parent b6e3ceb commit 4865755

9 files changed

Lines changed: 379 additions & 1036 deletions

File tree

.github/workflows/test-all.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
description: 'Run nCompile tests'
1313
required: false
1414
default: 'yes'
15+
run_nCompile_features:
16+
description: 'Run nCompile feature tests'
17+
required: false
18+
default: 'yes'
1519
run_nClass:
1620
description: 'Run nClass tests'
1721
required: false
@@ -52,6 +56,29 @@ jobs:
5256
testthat::test_dir("nCompiler/tests/testthat/specificOp_tests", reporter = "summary")
5357
shell: Rscript {0}
5458

59+
test-nCompile-features:
60+
runs-on: ubuntu-latest
61+
container:
62+
image: rocker/r2u:latest
63+
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_nCompile_features == 'yes'
64+
steps:
65+
- uses: actions/checkout@v3
66+
- name: SessionInfo
67+
run: R -q -e 'sessionInfo()'
68+
- name: Package Dependencies
69+
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
70+
- name: Install inline
71+
run: R -q -e 'remotes::install_cran("inline")'
72+
- name: Build Package
73+
run: |
74+
R CMD build nCompiler
75+
R CMD INSTALL --install-tests nCompiler_*.tar.gz
76+
- name: Run nCompile and other tests
77+
run: |
78+
library(nCompiler)
79+
testthat::test_dir("nCompiler/tests/testthat/predefined_tests", reporter = "summary")
80+
shell: Rscript {0}
81+
5582
test-nClass:
5683
runs-on: ubuntu-latest
5784
container:

0 commit comments

Comments
 (0)