<commit_before>name: Tests
on: [push, pull_request]

jobs:
  tests:
    if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
    runs-on: ${{ matrix.os || 'ubuntu-latest' }}
    strategy:
      fail-fast: false
      matrix:
        include:
        - os: ubuntu-18.04
          python-version: 2.7
          env:
            TOXENV: py27
        - os: ubuntu-18.04
          python-version: 3.4
          env:
            TOXENV: py
        - os: ubuntu-18.04
          python-version: 3.5
          env:
            TOXENV: py35
        - python-version: 3.6
          env:
            TOXENV: py
        - python-version: 3.7
          env:
            TOXENV: py
        - python-version: 3.8
          env:
            TOXENV: py

    steps:
    - uses: actions/checkout@v2

    - name: Run Splash
      run: |
        docker run --rm -d -p 8050:8050 --network host scrapinghub/splash

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Run tests
      env: ${{ matrix.env }}
      run: |
        pip install -U tox
        SPLASH_URL=http://127.0.0.1:8050 tox

    - name: Upload coverage report
      run: bash <(curl -s https://codecov.io/bash)
<commit_msg>GitHub Actions: use the official codecov action (#293)<commit_after>name: Tests
on: [push, pull_request]

jobs:
  tests:
    if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
    runs-on: ${{ matrix.os || 'ubuntu-latest' }}
    strategy:
      fail-fast: false
      matrix:
        include:
        - os: ubuntu-18.04
          python-version: 2.7
          env:
            TOXENV: py27
        - os: ubuntu-18.04
          python-version: 3.4
          env:
            TOXENV: py
        - os: ubuntu-18.04
          python-version: 3.5
          env:
            TOXENV: py35
        - python-version: 3.6
          env:
            TOXENV: py
        - python-version: 3.7
          env:
            TOXENV: py
        - python-version: 3.8
          env:
            TOXENV: py

    steps:
    - uses: actions/checkout@v2

    - name: Run Splash
      run: |
        docker run --rm -d -p 8050:8050 --network host scrapinghub/splash

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Run tests
      env: ${{ matrix.env }}
      run: |
        pip install -U tox
        SPLASH_URL=http://127.0.0.1:8050 tox

    - name: Upload coverage report
      uses: codecov/codecov-action@v2

{'fraction_non_alphanumeric': 0.1188707280832095, 'fraction_numerical': 0.03714710252600297, 'mean_word_length': 1.5027881040892193, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1432743', 'n_tokens_mistral': 968, 'n_tokens_neox': 864, 'n_words': 210}