<commit_before># This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Exercises check

on:
  push:
    branches: 
      - master
  pull_request:

jobs:
  housekeeping:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.7
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Download & Install dependencies
      run: |
        ./bin/fetch-configlet
        python -m pip install --upgrade pip
        pip install flake8 requests
        git clone https://github.com/exercism/problem-specifications spec
        pip install -r requirements-generator.txt
    - name: Check readmes
      run: |
        ./bin/check-readmes.sh
    - name: Check config.json integrity
      run: |
        # May provide more useful output than configlet fmt
        # if JSON is not valid or items are incomplete
        ./bin/configlet lint .
        # Verify correct formatting in config.json
        ./bin/configlet fmt . && git diff --quiet   
    #- name: Generate tests
    #  run: |
    #    bin/generate_tests.py --verbose -p spec --check
    - name: Lint with flake8
      run: |
        # stop the build if there are Python syntax errors or undefined names<commit_msg>Use configlet-ci action to Fetch configlet (#2254)<commit_after># This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Exercises check

on:
  push:
    branches: 
      - master
  pull_request:

jobs:
  housekeeping:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.7
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Download & Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install flake8 requests
        git clone https://github.com/exercism/problem-specifications spec
        pip install -r requirements-generator.txt
    - name: Check readmes
      run: |
        ./bin/check-readmes.sh
    - name: Fetch configlet
      uses: exercism/github-actions/configlet-ci@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    - name: Check config.json integrity
      run: |
        # May provide more useful output than configlet fmt
        # if JSON is not valid or items are incomplete
        configlet lint .
        # Verify correct formatting in config.json
        configlet fmt . && git diff --quiet   
    #- name: Generate tests
    #  run: |
    #    bin/generate_tests.py --verbose -p spec --check
    - name: Lint with flake8
      run: |
        # stop the build if there are Python syntax errors or undefined names
{'fraction_non_alphanumeric': 0.08496291301416048, 'fraction_numerical': 0.009440323668240054, 'mean_word_length': 2.2532894736842106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '647658', 'n_tokens_mistral': 873, 'n_tokens_neox': 847, 'n_words': 284}