Skip to content

Update2023

Update2023 #48

on: [push, pull_request]
name: TFA_stable
jobs:
R-CMD:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (TF ${{ matrix.config.tf }}) (${{ matrix.config.tensorflow-addons }})
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, tf: '2.13.0', tensorflow-addons: '0.21.0'}
- { os: macos-11, tf: '2.13.0', tensorflow-addons: '0.21.0'}
- { os: ubuntu-latest, tf: '2.13.0', tensorflow-addons: '0.21.0'}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
TF_VERSION: ${{ matrix.config.tf }}
TENSORFLOW_ADDONS_VERSION: ${{ matrix.config.tensorflow-addons }}
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
with:
r-version: '4.3.0'
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install libcurl4-openssl-dev
- name: Install deps
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('tqdm', pip = TRUE)"
Rscript -e "tfaddons::install_tfaddons()"
- name: Check
continue-on-error: ${{ matrix.config.allow_failure }}
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')"