<commit_before>image: python:3.7-stretch

variables:
  REQUIREMENTS: "requirements.txt"

stages:
- test

.test: &test
  stage: test
  before_script:
  - infinity config build-info
  - python --version
  - pip install -U -r $REQUIREMENTS
  - export PYTHONPATH=$(pwd):$PYTHONPATH
  script:
  - flake8 sevenbridges
  - py.test -v --cov=sevenbridges --cov-report=html
  artifacts:
    paths:
    - htmlcov/*

# Test with python 2.7
test:2.7:
  <<: *test
  image: python:2.7
<commit_msg>Disable html coverage on gitlab<commit_after>image: python:3.7-stretch

variables:
  REQUIREMENTS: "requirements.txt"

stages:
- test

.test: &test
  stage: test
  before_script:
  - infinity config build-info
  - python --version
  - pip install -U -r $REQUIREMENTS
  - export PYTHONPATH=$(pwd):$PYTHONPATH
  script:
  - flake8 sevenbridges
  - py.test -v --cov=sevenbridges


# Test with python 2.7
test:2.7:
  <<: *test
  image: python:2.7

{'fraction_non_alphanumeric': 0.12864864864864864, 'fraction_numerical': 0.01945945945945946, 'mean_word_length': 3.171171171171171, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2827224', 'n_tokens_mistral': 368, 'n_tokens_neox': 358, 'n_words': 84}