-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.98 KB
/
Copy pathtfaddons_stable.yml
File metadata and controls
56 lines (45 loc) · 1.98 KB
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
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.12.0', tensorflow-addons: '0.20.0'}
- { os: macOS-latest, tf: '2.12.0', tensorflow-addons: '0.20.0'}
- { os: ubuntu-latest, cran: "https://demo.rstudiopm.com/all/__linux__/xenial/latest", tf: '2.12.0', tensorflow-addons: '0.20.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.2.1'
- uses: r-lib/actions/setup-pandoc@v2
- 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.10')"
- 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', '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')"