<commit_before>name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        python-version: [3.6, 3.7, 3.8, 3.9]
    runs-on: ${{ matrix.os }}

    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 dependencies
      run: |
        pip install coverage scons flask flake8
        git clone --depth=5 https://github.com/salilab/saliweb
        export PYTHON=`pip show coverage |grep Location|cut -b11-`
        (cd saliweb && scons modeller_key=UNKNOWN pythondir=$PYTHON perldir=~/perl prefix=~/usr webdir=~/www install && touch $PYTHON/saliweb/frontend/config.py)
        rm -rf saliweb
    - name: Test
      run: |
        scons coverage=true python=$(which python) test
        flake8 .
    - name: Upload coverage to codecov
      run: |
        bash <(curl -s https://codecov.io/bash)
<commit_msg>Switch to Codecov Action<commit_after>name: build

on: [push, pull_request]

jobs:
  build:

    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-20.04]
        python-version: [3.6, 3.7, 3.8, 3.9]
    runs-on: ${{ matrix.os }}

    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 dependencies
      run: |
        pip install coverage scons flask flake8
        git clone --depth=5 https://github.com/salilab/saliweb
        export PYTHON=`pip show coverage |grep Location|cut -b11-`
        (cd saliweb && scons modeller_key=UNKNOWN pythondir=$PYTHON perldir=~/perl prefix=~/usr webdir=~/www install && touch $PYTHON/saliweb/frontend/config.py)
        rm -rf saliweb
    - name: Test
      run: |
        scons coverage=true python=$(which python) test
        flake8 .
    - uses: codecov/codecov-action@v1

{'fraction_non_alphanumeric': 0.1262848751835536, 'fraction_numerical': 0.01908957415565345, 'mean_word_length': 2.3289902280130295, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '5365862', 'n_tokens_mistral': 724, 'n_tokens_neox': 684, 'n_words': 169}