-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (47 loc) · 1.72 KB
/
build.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
name: build
on: [push, pull_request]
jobs:
build:
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} ${{ matrix.config.arch }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, tf: 'default', r: 'release', arch: 'x86'}
- {os: macOS-latest, tf: 'default', r: 'release', arch: 'arm64'}
- {os: windows-latest, tf: 'default', r: 'release'}
- {os: ubuntu-latest, tf: 'default', r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, tf: 'default', r: 'release', covr: 'yes'}
- {os: ubuntu-latest, tf: 'default', r: 'oldrel'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_CRAN_INCOMING_REMOTE_: false
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::covr
needs: check, coverage
- name: Miniconda + Tensorflow + Keras + Torch installation
run: |
reticulate::install_miniconda()
keras::install_keras(tensorflow = '${{ matrix.tf }}-cpu')
torch::install_torch()
shell: Rscript {0}
- name: Check
uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
- name: Test coverage
if: ${{ success() && matrix.config.covr == 'yes' }}
run: covr::codecov()
shell: Rscript {0}