diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a84b0112..8235a542 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: environment: ["r43", "r44"] - + steps: - name: Checkout pull request branch uses: actions/checkout@v4 @@ -34,17 +34,17 @@ jobs: with: run-install: false - - name: Build package - run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build - - # - name: Run unit tests - # run: pixi run --environment ${{ matrix.environment }} devtools_test - # - # - name: Check unit test code coverage - # run: pixi run --environment ${{ matrix.environment }} codecov + - name: Run unit tests + run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test - name: Run R CMD CHECK - run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck + run: | + pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build + pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck + + - name: Check unit test code coverage + if: ${{ matrix.environment == 'r44' }} + run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml codecov ci_osx-arm64: name: osx-arm64 CI @@ -70,11 +70,10 @@ jobs: with: run-install: false - - name: Build package - run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build - - # - name: Run unit tests - # run: pixi run --environment ${{ matrix.environment }} devtools_test + - name: Run unit tests + run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test - name: Run R CMD CHECK - run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck + run: | + pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build + pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck diff --git a/pixi.toml b/pixi.toml index 1a70954e..a001ae23 100644 --- a/pixi.toml +++ b/pixi.toml @@ -36,6 +36,7 @@ r43 = {features = ["r44"]} "r-crayon" = "*" "r-ggplot2" = "*" "r-l0learn" = "*" +"r-mr.ash.alpha_mccreight" = "*" # Suggested dependencies (for testing and documentation) "r-curl" = "*" diff --git a/tests/testthat.R b/tests/testthat.R index ebcc5c92..c6cafb2a 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,4 +1,5 @@ library(testthat) +library(Rcpp) library(susieR) test_check("susieR")