|
9 | 9 | branches: [main, master] |
10 | 10 | pull_request: |
11 | 11 | branches: [main, master] |
| 12 | + workflow_dispatch: |
12 | 13 |
|
13 | 14 | name: R-CMD-check |
14 | 15 |
|
|
23 | 24 | matrix: |
24 | 25 | config: |
25 | 26 | - {os: macOS-latest, r: 'release'} |
26 | | - # disable until tensorflow install is worked out |
27 | | - # - {os: windows-latest, r: 'release'} |
| 27 | + - {os: windows-latest, r: 'release'} |
28 | 28 | # Use older ubuntu to maximise backward compatibility |
29 | 29 | - {os: ubuntu-18.04, r: 'devel', http-user-agent: 'release'} |
30 | 30 | - {os: ubuntu-18.04, r: 'release'} |
@@ -53,20 +53,20 @@ jobs: |
53 | 53 | with: |
54 | 54 | extra-packages: rcmdcheck |
55 | 55 |
|
56 | | - - name: Install Miniconda |
57 | | - run: | |
58 | | - pak::pkg_install('rstudio/reticulate') |
59 | | - reticulate::install_miniconda() |
| 56 | + - name: Install dev reticulate |
| 57 | + run: pak::pkg_install('rstudio/reticulate') |
60 | 58 | shell: Rscript {0} |
61 | 59 |
|
62 | | - - name: Find Miniconda on macOS |
63 | | - if: runner.os == 'macOS' |
64 | | - run: echo "options(reticulate.conda_binary = reticulate:::miniconda_conda())" >> .Rprofile |
| 60 | + - name: Install Miniconda |
| 61 | + # conda can fail at downgrading python, so we specify python version in advance |
| 62 | + env: |
| 63 | + RETICULATE_MINICONDA_PYTHON_VERSION: "3.7" |
| 64 | + run: reticulate::install_miniconda() # creates r-reticulate conda env by default |
| 65 | + shell: Rscript {0} |
65 | 66 |
|
66 | 67 | - name: Install TensorFlow |
67 | 68 | run: | |
68 | | - reticulate::conda_create('r-reticulate', packages = c('python==3.6.9')) |
69 | | - tensorflow::install_tensorflow(version='1.14.0') |
| 69 | + tensorflow::install_tensorflow(version='1.15', conda_python_version = NULL) |
70 | 70 | shell: Rscript {0} |
71 | 71 |
|
72 | 72 | - uses: r-lib/actions/check-r-package@v2 |
|
0 commit comments