<commit_before>name: Unit Tests

on: [push, pull_request, workflow_dispatch]
jobs:
  build:
    name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04, macos-10.15, windows-2019]
        # 3.0 is interpreted as 3
        ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7, "3.0"]
        exclude:
          - { os: windows-2019 , ruby: 2.2 }
          - { os: windows-2019 , ruby: 2.3 }
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install Ruby & 'bundle install'
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Run Test
        run: |
          ruby -v
          bundle exec rake
        env:
          CI: true<commit_msg>Add Ruby 3.1 to CI matrix<commit_after>name: Unit Tests

on: [push, pull_request, workflow_dispatch]
jobs:
  build:
    name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04, macos-10.15, windows-2019]
        # 3.0 is interpreted as 3
        ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7, "3.0", 3.1]
        exclude:
          - { os: windows-2019 , ruby: 2.2 }
          - { os: windows-2019 , ruby: 2.3 }
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install Ruby & 'bundle install'
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Run Test
        run: |
          ruby -v
          bundle exec rake
        env:
          CI: true
{'fraction_non_alphanumeric': 0.14353219137625517, 'fraction_numerical': 0.05316007088009451, 'mean_word_length': 1.6021505376344085, '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': '2324863', 'n_tokens_mistral': 665, 'n_tokens_neox': 581, 'n_words': 155}