Skip to content

Commit

Permalink
Update R tests to use R 4.1.1 (Netflix#773)
Browse files Browse the repository at this point in the history
* Revert "Mute R tests (Netflix#737)"

This reverts commit ab8a9c6.

* Update test.yml

* Update publish.yml
  • Loading branch information
savingoyal authored Oct 18, 2021
1 parent 96f6739 commit b9592e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
lang: [Python]
lang: [Python, R]

steps:
- uses: actions/checkout@v2
Expand All @@ -36,17 +36,17 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install tox numpy
- name: Set up R 3.6
- name: Set up R 4.1
if: matrix.lang == 'R'
uses: r-lib/actions/setup-r@v1
with:
r-version: '3.6.3'
r-version: '4.1.1'

- name: Install R 3.6 system dependencies
- name: Install R 4.1 system dependencies
if: matrix.lang == 'R' && matrix.os == 'ubuntu-latest'
run: sudo apt-get update; sudo apt-get install -y libcurl4-openssl-dev qpdf libgit2-dev

- name: Install R 3.6 Rlang dependencies
- name: Install R 4.1 Rlang dependencies
if: matrix.lang == 'R'
run: |
python3 -m pip install .
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
lang: [Python]
lang: [Python, R]

steps:
- uses: actions/checkout@v2
Expand All @@ -40,22 +40,22 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install tox numpy
- name: Set up R 3.6
- name: Set up R 4.1
if: matrix.lang == 'R'
uses: r-lib/actions/setup-r@v1
with:
r-version: '3.6.3'
r-version: '4.1.1'

- name: Install R 3.6 system dependencies
- name: Install R 4.1 system dependencies
if: matrix.lang == 'R' && matrix.os == 'ubuntu-latest'
run: sudo apt-get update; sudo apt-get install -y libcurl4-openssl-dev qpdf libgit2-dev

- name: Install R 3.6 Rlang dependencies
- name: Install R 4.1 Rlang dependencies
if: matrix.lang == 'R'
run: |
python3 -m pip install .
Rscript -e 'install.packages("devtools", repos="https://cloud.r-project.org", Ncpus=8)'
Rscript -e 'devtools::install_deps("R", dependencies=TRUE, repos="https://cloud.r-project.org", upgrade="default")'
python3 -m pip install .
R CMD INSTALL R
Rscript -e 'install.packages(c("data.table", "caret", "glmnet", "Matrix", "rjson"), repos="https://cloud.r-project.org", Ncpus=8)'
Expand Down

0 comments on commit b9592e0

Please sign in to comment.