<commit_before>name: Unit tests

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.9]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install Poetry
      uses: snok/install-poetry@v1.1.2
      with:
        version: 1.1.4
        virtualenvs-create: true
        virtualenvs-in-project: true
        virtualenvs-path: .venv
    - name: Cache Poetry virtualenv
      uses: actions/cache@v2.1.4
      env:
        cache-name: venv-cache
      with:
        path: .venv
        key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
        restore-keys: |
          venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
          venv-${{ matrix.python-version }}-
    - name: Install dependencies
      run: |
        poetry install -v
    - name: Pre-commit checks
      run: |
        poetry run pre-commit run --all-files
    - name: Test with pytest
      run: |
        poetry run py.test --block-network --record-mode=none -p no:sugar --cov-report=xml:.coverage.xml
    - name: Upload coverage to codecov
      uses: codecov/codecov-action@v1.2.1
      with:
        file: ./.coverage.xml<commit_msg>Bump codecov/codecov-action from v1.2.1 to v1.3.1 (#152)<commit_after>name: Unit tests

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.9]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install Poetry
      uses: snok/install-poetry@v1.1.2
      with:
        version: 1.1.4
        virtualenvs-create: true
        virtualenvs-in-project: true
        virtualenvs-path: .venv
    - name: Cache Poetry virtualenv
      uses: actions/cache@v2.1.4
      env:
        cache-name: venv-cache
      with:
        path: .venv
        key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
        restore-keys: |
          venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
          venv-${{ matrix.python-version }}-
    - name: Install dependencies
      run: |
        poetry install -v
    - name: Pre-commit checks
      run: |
        poetry run pre-commit run --all-files
    - name: Test with pytest
      run: |
        poetry run py.test --block-network --record-mode=none -p no:sugar --cov-report=xml:.coverage.xml
    - name: Upload coverage to codecov
      uses: codecov/codecov-action@v1.3.1
      with:
        file: ./.coverage.xml
{'fraction_non_alphanumeric': 0.1337852301105958, 'fraction_numerical': 0.015340706386014985, 'mean_word_length': 1.9484752891692956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '645717', 'n_tokens_mistral': 947, 'n_tokens_neox': 920, 'n_words': 211}