<commit_before>name: CI

on:
  push: # git push
  pull_request: # PR
  workflow_dispatch: # manual

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      TRAVIS: 'true' # Skip tests requiring data
    strategy:
      matrix:
        python-version:
          - '2.7' # production
          - '3.5'
          - '3.9'
    name: Python ${{ matrix.python-version }}
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: install system dependencies
        run:
          sudo apt install mongod
      - name: Install dependencies
        run: |
          pip install https://files.pythonhosted.org/packages/3e/5c/2867e46f03d2fcc3d014a02eeb11ec55f3f8d9eddddcc5578ae8457f84f8/ERPpeek-1.7.1-py2.py3-none-any.whl
          ./setup.py develop
      - uses: BSFishy/pip-action@v1
        with:
          packages: |
            coveralls
            git+https://github.com/som-energia/plantmeter.git@master
      - name: Unit tests
        run: |
          coverage run --source generationkwh ./setup.py test

      - name: Coveralls
        uses: AndreMiras/coveralls-python-action@develop
        with:
          parallel: true
          flag-name: Unit tests

  coveralls_finish:
    needs: build
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true<commit_msg>gha: mongodb from upstream<commit_after>name: CI

on:
  push: # git push
  pull_request: # PR
  workflow_dispatch: # manual

jobs:
  build:
    runs-on: ubuntu-latest
    env:
      TRAVIS: 'true' # Skip tests requiring data
    strategy:
      matrix:
        python-version:
          - '2.7' # production
          - '3.5'
          - '3.9'
    name: Python ${{ matrix.python-version }}
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: install system dependencies
        run:
          wget -qO - https://www.mongodb.org/static/pgp/server-3.2.asc | sudo apt-key add -
          echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
          sudo apt-get update -y
          sudo apt install mongodb-org-server
      - name: Install dependencies
        run: |
          pip install https://files.pythonhosted.org/packages/3e/5c/2867e46f03d2fcc3d014a02eeb11ec55f3f8d9eddddcc5578ae8457f84f8/ERPpeek-1.7.1-py2.py3-none-any.whl
          ./setup.py develop
      - uses: BSFishy/pip-action@v1
        with:
          packages: |
            coveralls
            git+https://github.com/som-energia/plantmeter.git@master
      - name: Unit tests
        run: |
          coverage run --source generationkwh ./setup.py test

      - name: Coveralls
        uses: AndreMiras/coveralls-python-action@develop
        with:
          parallel: true
          flag-name: Unit tests

  coveralls_finish:
    needs: build
    runs-on: ubuntu-latest
    steps:
    - name: Coveralls Finished
      uses: AndreMiras/coveralls-python-action@develop
      with:
        parallel-finished: true
{'fraction_non_alphanumeric': 0.10157159487776485, 'fraction_numerical': 0.030267753201396973, 'mean_word_length': 1.9835069444444444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, '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': '326941', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1114, 'n_words': 236}