diff --git a/.github/workflows/R_CMD_check_Hades.yaml b/.github/workflows/R_CMD_check_Hades.yaml index 3d23eec8..8f7d37e0 100644 --- a/.github/workflows/R_CMD_check_Hades.yaml +++ b/.github/workflows/R_CMD_check_Hades.yaml @@ -63,10 +63,6 @@ jobs: r-version: ${{ matrix.config.r }} rtools-version: ${{ matrix.config.rtools }} - # - uses: r-lib/actions/setup-renv@v2 - # with: - # bypass-cache: true - - uses: r-lib/actions/setup-tinytex@v2 - uses: r-lib/actions/setup-pandoc@v2 @@ -89,28 +85,26 @@ jobs: extra-packages: any::rcmdcheck needs: check - # - uses: r-lib/actions/check-r-package@v2 - # with: - # args: 'c("--no-manual", "--as-cran")' - # error-on: '"warning"' - # check-dir: '"check"' - # - # - name: Upload source package - # if: success() && runner.os == 'Windows' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' - # uses: actions/upload-artifact@v2 - # with: - # name: package_tarball - # path: check/*.tar.gz + - uses: r-lib/actions/check-r-package@v2 + with: + args: 'c("--no-manual", "--as-cran")' + error-on: '"warning"' + check-dir: '"check"' + + - name: Upload source package + if: success() && runner.os == 'Windows' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' + uses: actions/upload-artifact@v2 + with: + name: package_tarball + path: check/*.tar.gz - name: Install covr - #if: runner.os == 'Windows' if: runner.os == 'Linux' run: | install.packages("covr") shell: Rscript {0} - name: Test coverage - #if: runner.os == 'Windows' if: runner.os == 'Linux' run: covr::codecov() shell: Rscript {0} diff --git a/tests/testthat/test-Strategus.R b/tests/testthat/test-Strategus.R index bb172cc7..312637d3 100644 --- a/tests/testthat/test-Strategus.R +++ b/tests/testthat/test-Strategus.R @@ -44,8 +44,7 @@ test_that("Run unit test study", { resultsDatabaseSchema <- NULL # Only run this code if we're testing on SQLite - # AND we're not running code coverage checks - if (dbms == "sqlite" && !identical(tolower(Sys.getenv("R_COVR")), "true")) { + if (dbms == "sqlite") { resultsConnectionDetailsReference <- "result-store" resultsDatabaseSchema <- "main" Strategus::storeConnectionDetails(