@@ -25,15 +25,11 @@ jobs:
25
25
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26
26
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
27
27
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
28
- include :
29
- - os : macOS-latest
30
- miniconda : ' ../miniconda/'
31
28
32
29
env :
33
30
R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
34
31
RSPM : ${{ matrix.config.rspm }}
35
32
GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
36
- RETICULATE_MINICONDA_PATH : ${{ matrix.miniconda }}
37
33
38
34
steps :
39
35
- uses : actions/checkout@v2
@@ -74,19 +70,18 @@ jobs:
74
70
remotes::install_cran("rcmdcheck")
75
71
shell : Rscript {0}
76
72
77
- - name : Install TensorFlow on macOS
78
- if : runner.os == 'macOS'
73
+ - name : Install Miniconda
79
74
run : |
80
- reticulate::install_miniconda()
81
- reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = '../miniconda/bin/conda')
82
- tensorflow::install_tensorflow(version='1.14.0', conda = '../miniconda/bin/conda')
83
- shell : Rscript {0}
75
+ Rscript -e "remotes::install_github('rstudio/reticulate')"
76
+ Rscript -e "reticulate::install_miniconda()"
77
+
78
+ - name : Find Miniconda on macOS
79
+ if : runner.os == 'macOS'
80
+ run : echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
84
81
85
- - name : Install TensorFlow on Windows and Ubuntu
86
- if : runner.os != 'macOS'
82
+ - name : Install TensorFlow
87
83
run : |
88
- reticulate::install_miniconda()
89
- reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')
84
+ reticulate::conda_create('r-reticulate', packages = c('python==3.6.9'))
90
85
tensorflow::install_tensorflow(version='1.14.0')
91
86
shell : Rscript {0}
92
87
0 commit comments