|
18 | 18 | fail-fast: false |
19 | 19 | matrix: |
20 | 20 | config: |
21 | | - - {os: macOS-latest, r: 'devel', miniconda: 'miniconda/'} |
22 | | - - {os: macOS-latest, r: 'release', miniconda: 'miniconda/'} |
| 21 | + - {os: macOS-latest, r: 'devel'} |
| 22 | + - {os: macOS-latest, r: 'release'} |
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 }} |
34 | 33 |
|
35 | 34 | steps: |
36 | 35 | - uses: actions/checkout@v2 |
@@ -71,21 +70,21 @@ jobs: |
71 | 70 | remotes::install_cran("rcmdcheck") |
72 | 71 | shell: Rscript {0} |
73 | 72 |
|
74 | | - - name: Install TensorFlow on macOS |
75 | | - if: runner.os == 'macOS' |
| 73 | + - name: Install TensorFlow on macOS and Ubuntu |
| 74 | + if: runner.os != 'Windows' |
| 75 | + env: |
| 76 | + RETICULATE_MINICONDA_PATH: 'miniconda/' |
76 | 77 | run: | |
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} |
| 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')" |
81 | 81 |
|
82 | | - - name: Install TensorFlow on Ubuntu and Windows |
83 | | - if: runner.os != 'macOS' |
| 82 | + - name: Install TensorFlow on Windows |
| 83 | + if: runner.os == 'Windows' |
84 | 84 | run: | |
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} |
| 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')" |
89 | 88 |
|
90 | 89 | - name: Session info |
91 | 90 | run: | |
|
0 commit comments