Skip to content

Commit

Permalink
Update R-CMD-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixErnst committed Mar 19, 2024
1 parent 9578456 commit 983b5fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ jobs:
uses: actions/checkout@v3

- name: Setup R from r-lib
if: runner.os != 'Linux'
if: runner.os != 'ubuntu-22.04'
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- name: Setup pandoc from r-lib
if: runner.os != 'Linux'
if: runner.os != 'ubuntu-22.04'
uses: r-lib/actions/setup-pandoc@v2

- name: Install R packages for CI
Expand All @@ -62,23 +62,23 @@ jobs:
shell: Rscript {0}

- name: Restore R package cache
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os != 'Linux'"
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os != 'ubuntu-22.04'"
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-

- name: Cache R packages on Linux
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'Linux' "
if: "!contains(github.event.head_commit.message, '/nocache') && runner.os == 'ubuntu-22.04' "
uses: actions/cache@v3
with:
path: /home/runner/work/_temp/Library
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-

- name: Install system dependencies
if: runner.os == 'Linux'
if: runner.os == 'ubuntu-22.04'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
run: find . -name testthat.Rout -exec cat '{}' ';'

- name: Test coverage
if: github.ref == 'refs/heads/master' && env.run_covr == 'true' && runner.os == 'Linux'
if: github.ref == 'refs/heads/master' && env.run_covr == 'true' && runner.os == 'ubuntu-22.04'
run: |
covr::codecov(coverage = covr::package_coverage(type = "all"))
shell: Rscript {0}
Expand Down

0 comments on commit 983b5fc

Please sign in to comment.