feat(recovery): nested mixedmirt random-effect RMSE evidence #129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test-fast | |
| on: | |
| push: | |
| branches: [main, master, develop] | |
| pull_request: | |
| branches: [main, master, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-fast: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: r-lib/actions/setup-r@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2 | |
| with: | |
| use-public-rspm: true | |
| # Build stringfish before dependency setup because packages built during | |
| # resolution can load it and fail on a prebuilt oneTBB ABI mismatch. | |
| - name: Source-build stringfish before dependency resolution | |
| run: >- | |
| Rscript -e 'install.packages(c("RcppParallel", "stringfish"), type = "source", | |
| repos = "https://cloud.r-project.org")' | |
| - uses: r-lib/actions/setup-r-dependencies@d3c5be51b12e724e68f33216ca3c148b66d5f0b6 # v2 | |
| with: | |
| extra-packages: any::testthat | |
| needs: check | |
| # Rebuild every installed package that links to RcppParallel against the | |
| # same local oneTBB ABI before loading kaefa or its test dependencies. | |
| - name: Rebuild RcppParallel-linked packages from source | |
| run: >- | |
| Rscript -e 'r <- "https://cloud.r-project.org"; install.packages("RcppParallel", type = "source", repos = r); | |
| linked <- tools::dependsOnPkgs("RcppParallel", dependencies = "LinkingTo"); | |
| if (length(linked)) install.packages(linked, type = "source", repos = r)' | |
| - name: Install kaefa package for fast tests | |
| run: R CMD INSTALL . | |
| - name: Run fast productization tests | |
| run: | | |
| Rscript - <<'RSCRIPT' | |
| reporter <- testthat::StopReporter$new() | |
| testthat::test_file("tests/testthat/test-benchmark-manifest.R", | |
| reporter = reporter) | |
| testthat::test_file("tests/testthat/test-shiny-product-surface.R", | |
| reporter = reporter) | |
| testthat::test_file("tests/testthat/test-core-api-contract.R", | |
| reporter = reporter) | |
| testthat::test_file("tests/testthat/test-aefa-parameter-recovery.R", | |
| reporter = reporter) | |
| testthat::test_file("tests/testthat/test-mixedmirt-parameter-recovery.R", | |
| reporter = reporter) | |
| RSCRIPT |