parent
a013942649
commit
7e239f229c
17
.github/workflows/r_tests.yml
vendored
17
.github/workflows/r_tests.yml
vendored
@ -3,7 +3,7 @@ name: XGBoost-R-Tests
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
R_PACKAGES: c('XML', 'igraph', 'data.table', 'ggplot2', 'DiagrammeR', 'Ckmeans.1d.dp', 'vcd', 'testthat', 'lintr', 'knitr', 'rmarkdown', 'e1071', 'cplm', 'devtools', 'float', 'titanic')
|
R_PACKAGES: c('XML', 'data.table', 'ggplot2', 'DiagrammeR', 'Ckmeans.1d.dp', 'vcd', 'testthat', 'lintr', 'knitr', 'rmarkdown', 'e1071', 'cplm', 'devtools', 'float', 'titanic')
|
||||||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -40,6 +40,11 @@ jobs:
|
|||||||
install.packages(${{ env.R_PACKAGES }},
|
install.packages(${{ env.R_PACKAGES }},
|
||||||
repos = 'http://cloud.r-project.org',
|
repos = 'http://cloud.r-project.org',
|
||||||
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
- name: Install igraph on Windows
|
||||||
|
shell: Rscript {0}
|
||||||
|
if: matrix.config.os == 'windows-latest'
|
||||||
|
run: |
|
||||||
|
install.packages('igraph', type='binary')
|
||||||
|
|
||||||
- name: Run lintr
|
- name: Run lintr
|
||||||
run: |
|
run: |
|
||||||
@ -83,6 +88,11 @@ jobs:
|
|||||||
install.packages(${{ env.R_PACKAGES }},
|
install.packages(${{ env.R_PACKAGES }},
|
||||||
repos = 'http://cloud.r-project.org',
|
repos = 'http://cloud.r-project.org',
|
||||||
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
- name: Install igraph on Windows
|
||||||
|
shell: Rscript {0}
|
||||||
|
if: matrix.config.os == 'windows-2016'
|
||||||
|
run: |
|
||||||
|
install.packages('igraph', type='binary', dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@ -91,7 +101,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Test R
|
- name: Test R
|
||||||
run: |
|
run: |
|
||||||
python tests/ci_build/test_r_package.py --compiler="${{ matrix.config.compiler }}" --build-tool="${{ matrix.config.build }}"
|
python tests/ci_build/test_r_package.py --compiler='${{ matrix.config.compiler }}' --build-tool='${{ matrix.config.build }}'
|
||||||
|
|
||||||
test-R-CRAN:
|
test-R-CRAN:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -115,7 +125,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install system packages
|
- name: Install system packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev libssh2-1-dev libgit2-dev pandoc pandoc-citeproc
|
sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev libssh2-1-dev libgit2-dev pandoc pandoc-citeproc libglpk-dev
|
||||||
|
|
||||||
- name: Cache R packages
|
- name: Cache R packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -130,6 +140,7 @@ jobs:
|
|||||||
install.packages(${{ env.R_PACKAGES }},
|
install.packages(${{ env.R_PACKAGES }},
|
||||||
repos = 'http://cloud.r-project.org',
|
repos = 'http://cloud.r-project.org',
|
||||||
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
install.packages('igraph', repos = 'http://cloud.r-project.org', dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
|
||||||
- name: Check R Package
|
- name: Check R Package
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user