Skip to content

Commit

Permalink
simplify gha ci testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Oct 19, 2023
1 parent afb3035 commit 370a352
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,34 @@ jobs:
matrix:
include:

- {os: 'ubuntu-latest' , python: '3.9' , r: 'release'}
- {os: 'ubuntu-latest' , python: '3.10', r: 'release'}
- {os: 'ubuntu-latest' , python: '3.11', r: 'release'}

## the happy path - default everything
- {os: 'ubuntu-latest' , tf: 'default', r: 'release'}
- {os: 'windows-latest', tf: 'default', r: 'release'}
- {os: 'macOS-latest' , tf: 'default', r: 'release'}

## old R versions
- {os: 'windows-latest', tf: 'default', r: 'oldrel'}
- {os: 'macOS-latest' , tf: 'default', r: 'oldrel'}
- {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel'}
- {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel-1'}
- {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel-2'}
- {os: 'ubuntu-20.04' , tf: 'default', r: '3.6'} # default R in ubuntu-20.04

## release keras/tf version (if different from 'default')
# - {os: 'ubuntu-latest' , tf: 'release', r: 'release'}
# - {os: 'windows-latest', tf: 'release', r: 'release'}
# - {os: 'macOS-latest' , tf: 'release', r: 'release'}

## old keras/tf versions
- {os: 'ubuntu-latest', tf: '2.14', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.13', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.12', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.11', r: 'release'}
- {os: 'ubuntu-latest', tf: '2.9' , r: 'release'}
# - {os: 'ubuntu-latest' , tf: 'default', r: 'release'}
# - {os: 'windows-latest', tf: 'default', r: 'release'}
# - {os: 'macOS-latest' , tf: 'default', r: 'release'}
#
# ## old R versions
# - {os: 'windows-latest', tf: 'default', r: 'oldrel'}
# - {os: 'macOS-latest' , tf: 'default', r: 'oldrel'}
# - {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel'}
# - {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel-1'}
# - {os: 'ubuntu-latest' , tf: 'default', r: 'oldrel-2'}
# - {os: 'ubuntu-20.04' , tf: 'default', r: '3.6'} # default R in ubuntu-20.04
#
# ## release keras/tf version (if different from 'default')
# # - {os: 'ubuntu-latest' , tf: 'release', r: 'release'}
# # - {os: 'windows-latest', tf: 'release', r: 'release'}
# # - {os: 'macOS-latest' , tf: 'release', r: 'release'}
#
# ## old keras/tf versions
# - {os: 'ubuntu-latest', tf: '2.14', r: 'release'}
# - {os: 'ubuntu-latest', tf: '2.13', r: 'release'}
# - {os: 'ubuntu-latest', tf: '2.12', r: 'release'}
# - {os: 'ubuntu-latest', tf: '2.11', r: 'release'}
# - {os: 'ubuntu-latest', tf: '2.9' , r: 'release'}

# these are allowed to fail
# - {os: 'ubuntu-latest', tf: '2.14.0rc1', r: 'release'}
Expand Down Expand Up @@ -97,7 +101,8 @@ jobs:
upgrade: 'TRUE'

- name: Install Tensorflow + Keras deps
run: keras::install_keras(tensorflow = '${{ matrix.tf }}-cpu')
run: keras::install_keras(python_version = '${{ matrix.python }}')
# run: keras::install_keras(tensorflow = '${{ matrix.tf }}-cpu')

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down

0 comments on commit 370a352

Please sign in to comment.