-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (57 loc) · 1.58 KB
/
R-CMD-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Run CI for R using https://eddelbuettel.github.io/r-ci/
name: R-CMD-check
on:
push:
branches: [main, master]
paths:
- .Rbuildignore
- R/**
- tests/**
- vignettes/*
- DESCRIPTION
- NAMESPACE
pull_request:
branches: [main, master]
paths:
- .Rbuildignore
- R/**
- tests/**
- vignettes/*
- DESCRIPTION
- NAMESPACE
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
USE_BSPM: "true"
_R_CHECK_FORCE_SUGGESTS_: "false"
# Otherwise default is to use "--no-build-vignettes --no-manual --as-cran"
R_BUILD_ARGS: "--no-manual"
R_CHECK_ARGS: "--no-manual --no-vignettes --as-cran"
WARNINGS_ARE_ERRORS: "true"
R_GH: true
GITHUB_PAT: ${{ secrets.COVR_GH_PAT }}
jobs:
ci:
strategy:
matrix:
include:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- name: Setup
uses: eddelbuettel/github-actions/r-ci-setup@master
- name: Bootstrap
run: ./run.sh bootstrap
- name: Install r-polars
run: |
Sys.setenv(NOT_CRAN = "true") # Enable installation with pre-built Rust library binary, or enable Rust caching
install.packages("polars", repos = "https://community.r-multiverse.org")
shell: Rscript {0}
- name: Dependencies
run: ./run.sh install_all
- name: Test
run: ./run.sh run_tests