Skip to content

Commit 3c9dfc2

Browse files
committed
Use option for reticulate to always prefer the Miniconda environment
1 parent c8b3ac1 commit 3c9dfc2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
runs-on: macOS-latest
1414
env:
1515
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16-
RETICULATE_MINICONDA_PATH: '../miniconda/'
1716
steps:
1817
- uses: actions/checkout@v2
1918

@@ -44,9 +43,11 @@ jobs:
4443

4544
- name: Install TensorFlow
4645
run: |
46+
Rscript -e "remotes::install_github('rstudio/reticulate')"
4747
Rscript -e "reticulate::install_miniconda()"
48-
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9', conda = '../miniconda/bin/conda')"
49-
Rscript -e "tensorflow::install_tensorflow(version='1.14.0', conda = '../miniconda/bin/conda')"
48+
echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile
49+
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.6.9')"
50+
Rscript -e "tensorflow::install_tensorflow(version='1.14.0')"
5051
5152
- name: Test coverage
5253
run: covr::codecov()

0 commit comments

Comments
 (0)