|
18 | 18 | fail-fast: false |
19 | 19 | matrix: |
20 | 20 | config: |
21 | | - - {os: macOS-latest, r: 'devel'} |
22 | | - - {os: macOS-latest, r: 'release'} |
| 21 | + - {os: macOS-latest, r: 'devel', miniconda: 'miniconda/'} |
| 22 | + - {os: macOS-latest, r: 'release', miniconda: 'miniconda/'} |
23 | 23 | - {os: windows-latest, r: 'release'} |
24 | 24 | - {os: windows-latest, r: '3.6'} |
25 | 25 | - {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"} |
|
30 | 30 | R_REMOTES_NO_ERRORS_FROM_WARNINGS: true |
31 | 31 | RSPM: ${{ matrix.config.rspm }} |
32 | 32 | GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + RETICULATE_MINICONDA_PATH: ${{ matrix.config.miniconda }} |
33 | 34 |
|
34 | 35 | steps: |
35 | 36 | - uses: actions/checkout@v2 |
@@ -70,21 +71,21 @@ jobs: |
70 | 71 | remotes::install_cran("rcmdcheck") |
71 | 72 | shell: Rscript {0} |
72 | 73 |
|
73 | | - - name: Install TensorFlow on macOS and Ubuntu |
74 | | - if: runner.os != 'Windows' |
75 | | - env: |
76 | | - RETICULATE_MINICONDA_PATH: 'miniconda/' |
| 74 | + - name: Install TensorFlow on macOS |
| 75 | + if: runner.os == 'macOS' |
77 | 76 | run: | |
78 | | - Rscript -e "reticulate::install_miniconda()" |
79 | | - Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = 'miniconda/bin/conda')" |
80 | | - Rscript -e "tensorflow::install_tensorflow(version='1.14.0', conda = 'miniconda/bin/conda')" |
| 77 | + reticulate::install_miniconda() |
| 78 | + reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = 'miniconda/bin/conda') |
| 79 | + tensorflow::install_tensorflow(version='1.14.0', conda = 'miniconda/bin/conda') |
| 80 | + shell: Rscript {0} |
81 | 81 |
|
82 | | - - name: Install TensorFlow on Windows |
83 | | - if: runner.os == 'Windows' |
| 82 | + - name: Install TensorFlow on Ubuntu and Windows |
| 83 | + if: runner.os != 'macOS' |
84 | 84 | run: | |
85 | | - Rscript -e "reticulate::install_miniconda()" |
86 | | - Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')" |
87 | | - Rscript -e "tensorflow::install_tensorflow(version='1.14.0')" |
| 85 | + reticulate::install_miniconda() |
| 86 | + reticulate::conda_create('r-reticulate', packages = 'python==3.6.9') |
| 87 | + tensorflow::install_tensorflow(version='1.14.0') |
| 88 | + shell: Rscript {0} |
88 | 89 |
|
89 | 90 | - name: Session info |
90 | 91 | run: | |
|
0 commit comments