<commit_before>image: quay.io/python-devs/ci-image

stages:
  - test
  - codecov
  - deploy

qa:
  script:
    - tox -e qa

tests:
  script:
    - tox -e py27,py35,py36,py37,py38

coverage:
  script:
    - tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov
  artifacts:
    paths:
      - coverage.xml

diffcov:
  script:
    - tox -e py27-diffcov,py35-diffcov,py36-diffcov,py37-diffcov,py38-diffcov

docs:
  script:
    - tox -e docs

codecov:
  stage: codecov
  dependencies:
    - coverage
  script:
    - codecov --token $CODECOV_TOKEN
  when: on_success

release:
  stage: deploy
  only:
    - /^v\d+\.\d+(\.\d+)?([abc]\d*)?$/<commit_msg>Run CI on Windows also. Closes #99.<commit_after>image: quay.io/python-devs/ci-image

stages:
  - test
  - codecov
  - deploy

qa:
  script:
    - tox -e qa

tests:
  script:
    - tox -e py27,py35,py36,py37,py38

Windows tests:
  extends: tests
  tags:
  - windows
  before_script:
  # allow chocolatey to install without confirmation
  - choco feature enable -n allowGlobalConfirmation
  # Install latest stable Python
  - choco install python
  # Link latest stable Python to C:\Python
  - cmd /c mklink /d C:\Python Python38
  # Add Python and its scripts to the Path
  - $env:PATH = 'C:\Python;C:\Python\Scripts;' + $env:PATH
  # Install older Pythons
  - choco install python --side-by-side --version=3.7.6
  - choco install python --side-by-side --version=3.6.8
  - choco install python --side-by-side --version=3.5.4.20200110
  - choco install python2
  # Install latest pip and tox
  - py -m pip install -U pip
  - py -m pip install tox

coverage:
  script:
    - tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov
  artifacts:
    paths:
      - coverage.xml

diffcov:
  script:
    - tox -e py27-diffcov,py35-diffcov,py36-diffcov,py37-diffcov,py38-diffcov

docs:
  script:
    - tox -e docs

codecov:
  stage: codecov
  dependencies:
    - coverage
  script:
    - codecov --token $CODECOV_TOKEN
  when: on_success

release:
  stage: deploy
  only:
    - /^v\d+\.\d+(\.\d+)?([abc]\d*)?$/
{'fraction_non_alphanumeric': 0.13264806656877143, 'fraction_numerical': 0.040137053352912386, 'mean_word_length': 2.567190226876091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 1, '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': '2041706', 'n_tokens_mistral': 859, 'n_tokens_neox': 803, 'n_words': 190}