Skip to content
Merged
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
18 changes: 9 additions & 9 deletions .github/environment/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ platforms = ["linux-64", "osx-64", "osx-arm64"]
libc = { family="glibc", version="2.17" }

[tasks]
devtools_document = "R -e 'devtools::document()'"
devtools_test = "R -e 'devtools::test()'"
codecov = "R -e 'covr::codecov(quiet = FALSE)'"
build = "R -e 'devtools::build()'"
rcmdcheck = "R -e 'pkg <- list.files(\"..\", pattern = \".tar.gz\", full.names = TRUE); rcmdcheck::rcmdcheck(path = pkg[1], args = c(\"--as-cran\", \"--no-manual\"))'"
use_major_version = "R -e 'usethis::Use_version(which = \"major\", push = FALSE)'"
use_minor_version = "R -e 'usethis::use_version(which = \"minor\", push = FALSE)'"
use_patch_version = "R -e 'usethis::use_version(which = \"patch\", push = FALSE)'"
pkgdown_build = "R -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)'"
devtools_document = "cd $GITHUB_WORKSPACE; R -e 'devtools::document()'"
devtools_test = "cd $GITHUB_WORKSPACE; R -e 'devtools::test()'"
codecov = "cd $GITHUB_WORKSPACE; R -e 'covr::codecov(quiet = FALSE)'"
build = "cd $GITHUB_WORKSPACE; R -e 'devtools::build()'"
rcmdcheck = "cd $GITHUB_WORKSPACE; R -e 'pkg <- list.files(\"..\", pattern = \".tar.gz\", full.names = TRUE); rcmdcheck::rcmdcheck(path = pkg[1], args = c(\"--as-cran\", \"--no-manual\"))'"
use_major_version = "cd $GITHUB_WORKSPACE; R -e 'usethis::Use_version(which = \"major\", push = FALSE)'"
use_minor_version = "cd $GITHUB_WORKSPACE; R -e 'usethis::use_version(which = \"minor\", push = FALSE)'"
use_patch_version = "cd $GITHUB_WORKSPACE; R -e 'usethis::use_version(which = \"patch\", push = FALSE)'"
pkgdown_build = "cd $GITHUB_WORKSPACE; R -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE)'"

[feature.r43]
dependencies = {"r-base" = "4.3.*"}
Expand Down
44 changes: 28 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,26 @@ jobs:
fetch-depth: 0

- name: Create TOML from recipe
run: .github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
run: |
.github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
mkdir /tmp/pixi
mv ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.14
with:
manifest-path: /tmp/pixi/pixi.toml

- name: Run unit tests
run: pixi run --environment ${{ matrix.environment }} devtools_test
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml devtools_test

- name: Run R CMD CHECK
run: |
pixi install --environment ${{ matrix.environment }}
ln -sf $(pwd)/.pixi/envs/default/lib/libhwasan.so.0 $(pwd)/.pixi/envs/default/lib/libhwasan.so
ln -sf $(pwd)/.pixi/envs/${{ matrix.environment }}/lib/libhwasan.so.0 $(pwd)/.pixi/envs/${{ matrix.environment }}/lib/libhwasan.so
pixi run --environment ${{ matrix.environment }} build
pixi run --environment ${{ matrix.environment }} rcmdcheck
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
run: pixi run --environment ${{ matrix.environment }} codecov
run: pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml codecov

ci_osx-64:
name: osx-64 CI
Expand All @@ -59,18 +61,23 @@ jobs:
fetch-depth: 0

- name: Create TOML from recipe
run: .github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
run: |
.github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
mkdir /tmp/pixi
mv ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.14
with:
manifest-path: /tmp/pixi/pixi.toml

- name: Run unit tests
run: pixi run --environment ${{ matrix.environment }} devtools_test
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 }} build
pixi run --environment ${{ matrix.environment }} rcmdcheck
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck

ci_osx-arm64:
name: osx-arm64 CI
Expand All @@ -87,15 +94,20 @@ jobs:
fetch-depth: 0

- name: Create TOML from recipe
run: .github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
run: |
.github/workflows/create_toml_from_yaml.sh ${GITHUB_WORKSPACE}
mkdir /tmp/pixi
mv ${GITHUB_WORKSPACE}/pixi.toml /tmp/pixi

- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.8.14
with:
manifest-path: /tmp/pixi/pixi.toml

- name: Run unit tests
run: pixi run --environment ${{ matrix.environment }} devtools_test
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 }} build
pixi run --environment ${{ matrix.environment }} rcmdcheck
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml build
pixi run --environment ${{ matrix.environment }} --manifest-path /tmp/pixi/pixi.toml rcmdcheck