Skip to content

Commit e8a5314

Browse files
committed
keras install in CI
1 parent 0e6cad5 commit e8a5314

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ jobs:
6767
with:
6868
python-version: 3.11
6969

70-
- name: Install TensorFlow
70+
- name: Install TensorFlow/Keras
7171
run: |
72-
reticulate::virtualenv_create('r-reticulate', python='3.11')
73-
reticulate::use_virtualenv('r-reticulate')
74-
tensorflow::install_tensorflow(version='2.16')
72+
install.packages(c("keras3"))
73+
keras3::install_keras()
7574
shell: Rscript {0}
7675

7776
- uses: r-lib/actions/check-r-package@v2

.github/workflows/test-coverage.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,10 @@ jobs:
2727
extra-packages: any::covr, any::xml2
2828
needs: coverage
2929

30-
- name: Install dev reticulate
31-
run: pak::pkg_install('rstudio/reticulate')
32-
shell: Rscript {0}
33-
34-
- name: Install Miniconda
35-
run: |
36-
reticulate::install_miniconda()
37-
shell: Rscript {0}
38-
39-
- name: Install TensorFlow
30+
- name: Install TensorFlow/Keras
4031
run: |
41-
reticulate::conda_create('r-reticulate', packages = c('python==3.11'))
42-
tensorflow::install_tensorflow(version='2.16')
32+
install.packages(c("keras3"))
33+
keras3::install_keras()
4334
shell: Rscript {0}
4435

4536
- name: Test coverage

0 commit comments

Comments
 (0)