Skip to content

Commit c7cacc0

Browse files
committed
Create Miniconda separately for not Windows vs. Windows
1 parent d1ce373 commit c7cacc0

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,22 @@ jobs:
7070
remotes::install_cran("rcmdcheck")
7171
shell: Rscript {0}
7272

73-
- name: Set Miniconda path
74-
if: runner.os == 'MacOS'
73+
- name: Create Miniconda on macOS and Ubuntu
74+
if: runner.os != 'Windows'
7575
env:
7676
RETICULATE_MINICONDA_PATH: 'miniconda/'
77+
run: |
78+
Rscript -e "reticulate::install_miniconda()"
79+
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = 'miniconda/bin/conda')"
7780
78-
- name: Install TensorFlow
81+
- name: Create Miniconda on Windows
82+
if: runner.os == 'Windows'
7983
run: |
8084
Rscript -e "reticulate::install_miniconda()"
8185
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')"
82-
Rscript -e "tensorflow::install_tensorflow(version='1.14.0')"
86+
87+
- name: Install TensorFlow
88+
run: Rscript -e "tensorflow::install_tensorflow(version='1.14.0')"
8389

8490
- name: Session info
8591
run: |

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Install TensorFlow
4646
run: |
4747
Rscript -e "reticulate::install_miniconda()"
48-
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')"
48+
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = 'miniconda/bin/conda')"
4949
Rscript -e "tensorflow::install_tensorflow(version='1.14.0')"
5050
5151
- name: Test coverage

0 commit comments

Comments
 (0)