Skip to content

all

all #58

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')"