<commit_before>name: CI

on:
  pull_request:

  push:
    branches:
      - master

env:
  GIT_COMMIT_SHA: ${{ github.sha }}
  GIT_BRANCH: ${{ github.ref }}

jobs:
  linting:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.6.x

      - name: Rubocop
        run: |
          gem install rubocop rubocop-packaging rubocop-performance --no-document
          rubocop --format progress

      - name: Yard-Junk
        run: |
          gem install yard-junk --no-document
          yard-junk --path lib

  build:
    needs: [linting]
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ['2.4', '2.5', '2.6', '2.7']

    steps:
    - uses: actions/checkout@v1

    - name: Install dependencies
      run: |
        sudo apt-get install libcurl4-openssl-dev

    - name: Set up RVM
      run: |
        curl -sSL https://get.rvm.io | bash

    - name: Set up Ruby
      run: |
        source $HOME/.rvm/scripts/rvm
        rvm install ${{ matrix.ruby }} --disable-binary
        rvm --default use ${{ matrix.ruby }}

    - name: Build
      run: |
        source $HOME/.rvm/scripts/rvm
        sudo apt-get install libcurl4-openssl-dev
        gem install bundler -v '<2'
        bundle install --jobs 4 --retry 3

    - name: Test
      run: |
        source $HOME/.rvm/scripts/rvm
        bundle exec rake<commit_msg>GitHub Actions: use ruby/setup-ruby@v1 to go faster (#272) <commit_after>name: CI

on:
  pull_request:

  push:
    branches:
      - master

env:
  GIT_COMMIT_SHA: ${{ github.sha }}
  GIT_BRANCH: ${{ github.ref }}

jobs:
  linting:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.6.x

      - name: Rubocop
        run: |
          gem install rubocop rubocop-packaging rubocop-performance --no-document
          rubocop --format progress

      - name: Yard-Junk
        run: |
          gem install yard-junk --no-document
          yard-junk --path lib

  build:
    needs: [linting]
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ['2.4', '2.5', '2.6', '2.7', '3.0']

    steps:
    - uses: actions/checkout@v1
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install system dependencies
      run: sudo apt install libcurl4-openssl-dev
    - name: Install Ruby dependencies
      run: bundle install --jobs 4 --retry 3
    - name: Test
      run: bundle exec rake
{'fraction_non_alphanumeric': 0.11963539688568173, 'fraction_numerical': 0.017090770983668818, 'mean_word_length': 1.7380457380457381, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7452234', 'n_tokens_mistral': 962, 'n_tokens_neox': 884, 'n_words': 231}