Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/test-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,38 @@ on:
run_tests:
description: 'Run all tests'
required: true
default: 'no'
run_nCompile:
description: 'Run nCompile 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: 'yes'
default: 'no'

jobs:
test-nCompile:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes'
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"))'
run: R -q -e 'remotes::install_cran("inline")'
- name: Build Package
run: |
R CMD build nCompiler
Expand All @@ -44,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes'
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_nClass == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
Expand All @@ -55,14 +67,15 @@ jobs:
- name: Package Dependencies
run: R -q -e 'remotes::install_deps("nCompiler", dependencies=TRUE)'
- name: Install inline
run: R -q -e 'remotes::install_cran("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")
Expand All @@ -72,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: rocker/r2u:latest
if: github.event.inputs.run_tests == 'yes'
if: github.event.inputs.run_tests == 'yes' || github.event.inputs.run_math == 'yes'
steps:
- uses: actions/checkout@v3
- name: SessionInfo
Expand Down
269 changes: 0 additions & 269 deletions .github/workflows/test-suites.yml

This file was deleted.

11 changes: 6 additions & 5 deletions nCompiler/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Authors@R: c(person("Perry", "de Valpine", email = "pdevalpine@berkeley.edu", ro
person("Christopher", "Paciorek", role = "ctb"),
person("James", "Duncan", role = "ctr"))
Description: Provides nFunction and nClass for function and class definitions for which C++ can be automatically generated, or used in combination with other C++. Supports linear algebra by code-generating C++ that uses the Eigen library. Supports automatic differentiation by code-generating C++ that uses the CppAD library. Support for parallelization is planned by code-generating C++ that uses Intel Threading Building Blocks (TBB).
Depends: R (>= 3.3.0)
Depends: R (>= 4.1.0)
Imports:
methods,R6,Rcpp,pkgKitten,roxygen2
Suggests:
Expand Down Expand Up @@ -49,6 +49,10 @@ Collate:
cppDefs_TBB.R
cppDefs_variables.R
developerTools.R
symbolTable.R
symbolTableClass.R
symbolTable_utils.R
typeDeclarations.R
NC.R
NC_Compile.R
NC_CompilerClass.R
Expand All @@ -70,6 +74,7 @@ Collate:
NF_Utils.R
nCompile.R
nConstructor.R
nimbleModels.R
nList.R
nTry.R
packaging.R
Expand All @@ -78,11 +83,7 @@ Collate:
Rcpp_nCompiler.R
Rexecution.R
Rhooks.R
symbolTable.R
symbolTableClass.R
symbolTable_utils.R
testingTools.R
typeDeclarations.R
compile_zzz_operatorLists.R
zzz_NC_Predefined.R
RoxygenNote: 7.3.2
3 changes: 3 additions & 0 deletions nCompiler/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export(isUserDefined)
export(logfact)
export(loggam)
export(logit)
export(makeModel_nClass)
export(make_node_fun)
export(method)
export(modelBase_nClass)
export(new.loadedObjectEnv) ## needed for Rcpp::Function access in loadedObjectEnv.h
export(new.loadedObjectEnv_full) ## ditto
export(nBacksolve)
Expand Down
Loading