<commit_before>name: Python CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  run_tests:
    name: Tests
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-20.04
        python-version:
          - 3.8
        node-version:
          - 10
        toxenv:
          - django22-drf310
          - django22-drflatest
          - quality
          - pii_check
          - version_check
          - translations
          - js_tests
          - js_lint
          - rst_validation
    steps:
    - uses: actions/checkout@v1
    - name: Setup python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Setup node
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Set display to virtual frame buffer
      run: export DISPLAY=:99.0

    - name: Install pip
      run: pip install -r requirements/pip.txt

    - name: Install requirements
      run: pip install -r requirements/ci.txt

    - name: Run tests
      env:
        TOXENV: ${{ matrix.toxenv }}
      run: tox

    - name: Run Coverage
      if: matrix.toxenv == 'django22-drf310' || matrix.toxenv == 'django22-drflatest'
      uses: codecov/codecov-action@v1
      with:
        flags: unittests
        fail_ci_if_error: true<commit_msg>temporarily disable codecov fail<commit_after>name: Python CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  run_tests:
    name: Tests
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-20.04
        python-version:
          - 3.8
        node-version:
          - 10
        toxenv:
          - django22-drf310
          - django22-drflatest
          - quality
          - pii_check
          - version_check
          - translations
          - js_tests
          - js_lint
          - rst_validation
    steps:
    - uses: actions/checkout@v1
    - name: Setup python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Setup node
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Set display to virtual frame buffer
      run: export DISPLAY=:99.0

    - name: Install pip
      run: pip install -r requirements/pip.txt

    - name: Install requirements
      run: pip install -r requirements/ci.txt

    - name: Run tests
      env:
        TOXENV: ${{ matrix.toxenv }}
      run: tox

    - name: Run Coverage
      if: matrix.toxenv == 'django22-drf310' || matrix.toxenv == 'django22-drflatest'
      uses: codecov/codecov-action@v1
      with:
        flags: unittests
        fail_ci_if_error: false
{'fraction_non_alphanumeric': 0.10028449502133713, 'fraction_numerical': 0.020625889046941678, 'mean_word_length': 1.5854779411764706, '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': '1646672', 'n_tokens_mistral': 935, 'n_tokens_neox': 872, 'n_words': 204}