<commit_before>on:
  push:
    branches:
      - master
      - main
  pull_request:
  schedule:
    - cron: '21 3 * * MON'

name: R-CMD-check

defaults:
  run:
    shell: Rscript {0}

jobs:
  R-CMD-check:
    name: ${{ matrix.os }}, tf-${{ matrix.tf }}, R-${{ matrix.r}}
    strategy:
      fail-fast: false
      matrix:
        include:
          - {os: 'ubuntu-20.04'  , tf: 'default', r: 'release'}
          - {os: 'windows-latest', tf: 'default', r: 'release'}
          - {os: 'macOS-latest'  , tf: 'default', r: 'release'}

          - {os: 'ubuntu-20.04'  , tf: 'default', r: 'oldrel'}
          - {os: 'windows-latest', tf: 'default', r: 'oldrel'}
          - {os: 'macOS-latest'  , tf: 'default', r: 'oldrel'}

          - {os: 'ubuntu-20.04', tf: 'default', r: '3.6'} # default R in ubuntu-20.04
          - {os: 'ubuntu-20.04', tf: 'default', r: '3.5'} #
          - {os: 'ubuntu-20.04', tf: 'default', r: '3.4'} #
          - {os: 'ubuntu-20.04', tf: 'default', r: '3.3'} # Oldest R available in Rstudio Marketplace offerings
          # - {os: 'ubuntu-20.04', tf: 'tensorflow-cpu', r: '3.2'} # rcmdcheck not available
          # - {os: 'ubuntu-20.04', tf: 'tensorflow-cpu', r: '3.1'} # remotes not available

          ## uncomment if/when tf "release" != "default"
          # - {os: 'ubuntu-20.04'  , tf: 'release', r: 'release'}
          # - {os: 'windows-latest', tf: 'release', r: 'release'}
          # - {os: 'macOS-latest'  , tf: 'release', r: 'release'}

          - {os: 'ubuntu-20.04', tf: '2.5', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.4', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.3', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.2', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.1', r: 'release'}

          # these are allowed to fail
          - {os: 'ubuntu-20.04', tf: 'default', r: 'devel'}
          - {os: 'ubuntu-20.04', tf: 'nightly' , r: 'release'}
          # - {os: 'ubuntu-20.04', tf: '2.6.0rc1', r: 'release'}
<commit_msg>Don't test on R-3.3<commit_after>on:
  push:
    branches:
      - master
      - main
  pull_request:
  schedule:
    - cron: '21 3 * * MON'

name: R-CMD-check

defaults:
  run:
    shell: Rscript {0}

jobs:
  R-CMD-check:
    name: ${{ matrix.os }}, tf-${{ matrix.tf }}, R-${{ matrix.r}}
    strategy:
      fail-fast: false
      matrix:
        include:
          - {os: 'ubuntu-20.04'  , tf: 'default', r: 'release'}
          - {os: 'windows-latest', tf: 'default', r: 'release'}
          - {os: 'macOS-latest'  , tf: 'default', r: 'release'}

          - {os: 'ubuntu-20.04'  , tf: 'default', r: 'oldrel'}
          - {os: 'windows-latest', tf: 'default', r: 'oldrel'}
          - {os: 'macOS-latest'  , tf: 'default', r: 'oldrel'}

          - {os: 'ubuntu-20.04', tf: 'default', r: '3.6'} # default R in ubuntu-20.04
          - {os: 'ubuntu-20.04', tf: 'default', r: '3.5'} #
          - {os: 'ubuntu-20.04', tf: 'default', r: '3.4'} #
          # - {os: 'ubuntu-20.04', tf: 'default', r: '3.3'} # Oldest R available in RStudio Marketplace offerings; rcmdcheck not available
          # - {os: 'ubuntu-20.04', tf: 'tensorflow-cpu', r: '3.2'} # rcmdcheck not available
          # - {os: 'ubuntu-20.04', tf: 'tensorflow-cpu', r: '3.1'} # remotes not available

          ## uncomment if/when tf "release" != "default"
          # - {os: 'ubuntu-20.04'  , tf: 'release', r: 'release'}
          # - {os: 'windows-latest', tf: 'release', r: 'release'}
          # - {os: 'macOS-latest'  , tf: 'release', r: 'release'}

          - {os: 'ubuntu-20.04', tf: '2.5', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.4', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.3', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.2', r: 'release'}
          - {os: 'ubuntu-20.04', tf: '2.1', r: 'release'}

          # these are allowed to fail
          - {os: 'ubuntu-20.04', tf: 'default', r: 'devel'}
          - {os: 'ubuntu-20.04', tf: 'nightly' , r: 'release'}
          # - {os: 'ubuntu-20.04', tf: '2.6.0rc1', r: 'release'}

{'fraction_non_alphanumeric': 0.22663378545006166, 'fraction_numerical': 0.050801479654747225, 'mean_word_length': 2.0089020771513355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3608977', 'n_tokens_mistral': 1721, 'n_tokens_neox': 1550, 'n_words': 398}