<commit_before>name: Python application

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install apt packages
      run: sudo apt install -y libsass-dev graphicsmagick mupdf-tools ghostscript unoconv python-dev
    - name: Set up Python 3.6
      uses: actions/setup-python@v2
      with:
        python-version: 3.6
    - name: Install python packages
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

    - name: Install npm packages
      run: npm install

    - name: Django checks
      run: ./manage.py check
    
    - name: Check migrations
      run: ./manage.py makemigrations --dry-run --check

    - name: Build js
      run: npm run build

    - name: Statics checks
      run: ./manage.py collectstatic --noinput -v 0

    - name: pytest
      run: py.test -k "not unoconv" --cov=catalog --cov=documents --cov=notifications --cov=tags --cov=telepathy --cov=users --cov=www --cov-report=

    - name: database checks
      run: make database<commit_msg>Update the CI to use Python 3.8<commit_after>name: Python application

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install apt packages
      run: sudo apt install -y libsass-dev graphicsmagick mupdf-tools ghostscript unoconv python3-dev
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Install python packages
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

    - name: Install npm packages
      run: npm install

    - name: Django checks
      run: ./manage.py check

    - name: Check migrations
      run: ./manage.py makemigrations --dry-run --check

    - name: Build js
      run: npm run build

    - name: Statics checks
      run: ./manage.py collectstatic --noinput -v 0

    - name: pytest
      run: py.test -k "not unoconv" --cov=catalog --cov=documents --cov=notifications --cov=tags --cov=telepathy --cov=users --cov=www --cov-report=

    - name: database checks
      run: make database
{'fraction_non_alphanumeric': 0.1017833840800348, 'fraction_numerical': 0.006524575902566333, 'mean_word_length': 2.1420765027322406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6324694', 'n_tokens_mistral': 747, 'n_tokens_neox': 702, 'n_words': 234}