<commit_before># Reusing built gitlab definition:
include:
  - local: '{{cookiecutter.project_name}}/.gitlab-ci.yml'


# Building template project:
mirror-github-build:
  stage: build
  image: "python:3.8"
  variables:
    PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  cache:  # we use cache to speed up `pip` installs
    key:
      files:
        - poetry.lock
    paths:
      - "$PIP_CACHE_DIR"
      - '.venv/'
  before_script:
    # Installing poetry:
    - curl -sSL "https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python
    - export PATH="$HOME/.poetry/bin:$PATH"
    # Installing dependencies:
    - poetry config virtualenvs.in-project true
    - poetry install --no-dev
  script:
    - poetry run sh tests/test_gitlab.sh
  only:
    - external_pull_requests
  artifacts:
    name: "template-build"
    expire_in: 1 week
    paths:
      - '.test/wemake-django-template'


# Redefining how tests are executed:
variables:
  GROUP_NAME: 'sobolevn'
  PROJECT_NAME: 'wemake-django-template'


test:
  variables:
    CI_PROJECT_DIR: '.test/wemake-django-template'
  only:
    - master
    - external_pull_requests


release-image:
  variables:
    CI_PROJECT_DIR: '.test/wemake-django-template'
  only:
    - master
    - external_pull_requests
<commit_msg>Fixes gitlab-ci for master builds<commit_after># Reusing built gitlab definition:
include:
  - local: '{{cookiecutter.project_name}}/.gitlab-ci.yml'


# Building template project:
mirror-github-build:
  stage: build
  image: "python:3.8"
  variables:
    PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
  cache:  # we use cache to speed up `pip` installs
    key:
      files:
        - poetry.lock
    paths:
      - "$PIP_CACHE_DIR"
      - '.venv/'
  before_script:
    # Installing poetry:
    - curl -sSL "https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py" | python
    - export PATH="$HOME/.poetry/bin:$PATH"
    # Installing dependencies:
    - poetry config virtualenvs.in-project true
    - poetry install --no-dev
  script:
    - poetry run sh tests/test_gitlab.sh
  only:
    - master
    - external_pull_requests
  artifacts:
    name: "template-build"
    expire_in: 1 week
    paths:
      - '.test/wemake-django-template'


# Redefining how tests are executed:
variables:
  GROUP_NAME: 'sobolevn'
  PROJECT_NAME: 'wemake-django-template'


test:
  variables:
    CI_PROJECT_DIR: '.test/wemake-django-template'
  only:
    - master
    - external_pull_requests


release-image:
  variables:
    CI_PROJECT_DIR: '.test/wemake-django-template'
  only:
    - master
    - external_pull_requests

{'fraction_non_alphanumeric': 0.11589782691574534, 'fraction_numerical': 0.002287457110179184, 'mean_word_length': 2.898959881129272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2702933', 'n_tokens_mistral': 941, 'n_tokens_neox': 910, 'n_words': 187}