Skip to content

integration test 1

integration test 1 #4

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R-test
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
r-version: ['4.1.1']
env:
GITHUB_PAT: ${{ secrets.MY_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
use-public-rspm: true
- name: Install system libraries
if: runner.os == 'Linux'
run: sudo apt-get install -y libcurl4-openssl-dev
- name: Install base R dependencies
run: |
install.packages(c("remotes", "devtools", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Session info 1
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Install package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
- name: Session info 2
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Run tests
run: devtools::test()
shell: Rscript {0}