Skip to content

Commit ed046f5

Browse files
committed
Set conda path for whole workflow, for macOS
1 parent f774b67 commit ed046f5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ jobs:
2525
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2626
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
2727
- {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/'
2831

2932
env:
3033
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
3134
RSPM: ${{ matrix.config.rspm }}
3235
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
36+
RETICULATE_MINICONDA_PATH: ${{ matrix.miniconda }}
3337

3438
steps:
3539
- uses: actions/checkout@v2
@@ -70,17 +74,15 @@ jobs:
7074
remotes::install_cran("rcmdcheck")
7175
shell: Rscript {0}
7276

73-
- name: Install TensorFlow on macOS and Ubuntu
74-
if: runner.os != 'Windows'
75-
env:
76-
RETICULATE_MINICONDA_PATH: '../miniconda/'
77+
- name: Install TensorFlow on macOS
78+
if: runner.os == 'macOS'
7779
run: |
7880
Rscript -e "reticulate::install_miniconda()"
7981
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = '../miniconda/bin/conda')"
8082
Rscript -e "tensorflow::install_tensorflow(version='1.14.0', conda = '../miniconda/bin/conda')"
8183
82-
- name: Install TensorFlow on Windows
83-
if: runner.os == 'Windows'
84+
- name: Install TensorFlow on Windows and Ubuntu
85+
if: runner.os != 'macOS'
8486
run: |
8587
Rscript -e "reticulate::install_miniconda()"
8688
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')"

0 commit comments

Comments
 (0)