-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (51 loc) · 2.21 KB
/
keras_tuner_stable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
on: [push, pull_request]
name: KT_stable
jobs:
R-CMD:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (TF ${{ matrix.config.tf }}) (KT ${{ matrix.config.keras-tuner }})
strategy:
fail-fast: false
matrix:
config:
- { os: macOS-latest, tf: '2.13.0', keras-tuner: '1.3.5'}
- { os: windows-latest, tf: '2.13.0', keras-tuner: '1.3.5'}
- { os: windows-latest, tf: 'nightly', keras-tuner: '1.3.5'}
- { os: macOS-latest, tf: 'nightly', keras-tuner: '1.3.5'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
TF_VERSION: ${{ matrix.config.tf }}
KERAS_TUNER_VERSION: ${{ matrix.config.keras-tuner }}
PIP_NO_WARN_SCRIPT_LOCATION: false
RETICULATE_AUTOCONFIGURE: 'FALSE'
CRAN: ${{ matrix.config.cran }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies Linux
if: runner.os == 'Linux'
run: |
sudo apt-get install libcurl4-openssl-dev
sudo add-apt-repository -y ppa:cran/imagemagick
sudo apt-get update
sudo apt-get install -y libmagick++-dev
- name: Install MacOS/Windows/Linux
run: |
Rscript -e "install.packages('remotes')"
Rscript -e "remotes::install_deps(dependencies = TRUE)"
Rscript -e "remotes::install_cran('rcmdcheck')"
- name: Install Python
run: |
Rscript -e "install.packages('reticulate')"
Rscript -e "try(reticulate::install_miniconda())"
Rscript -e "reticulate::conda_create('r-reticulate', packages = 'python==3.8')"
- name: Install TensorFlow
run: |
Rscript -e "remotes::install_local()"
Rscript -e "tensorflow::install_tensorflow(version = Sys.getenv('TF_VERSION'))"
Rscript -e "reticulate::py_install(c('setuptools', 'wheel', 'requests'), pip = TRUE)"
Rscript -e "kerastuneR::install_kerastuner()"
- name: Check
continue-on-error: ${{ matrix.config.allow_failure }}
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"