<commit_before>image:
  magicstack/edgedb-ci:latest

variables:
  WORKON_HOME: /var/lib/venvs
  PIP_CACHE_DIR: /var/cache/pip

build:
  only:
    - master

  tags:
    - python3

  cache:
    paths:
      - /var/cache/pip/
      - /var/cache/edgedb-build/

  script:
    - mkdir -p /var/lib/venvs
    - mkdir -p /var/cache/pip
    - mkdir -p /var/cache/edgedb-build
    - ln -s /var/cache/edgedb-build build
    - pip --quiet install vex
    - vex --python=python3 -m test pip --quiet install --upgrade setuptools wheel pip pbr
    - vex test pip install -U .
    - find build -type f ! -name '*.pickle' -delete && find build -type d -empty -delete
    - vex test gosu postgres:postgres pytest --verbose<commit_msg>ci: Fix CI build<commit_after>image:
  magicstack/edgedb-ci:latest

variables:
  WORKON_HOME: /var/lib/venvs
  PIP_CACHE_DIR: /var/cache/pip

build:
  only:
    - master
    - ci

  tags:
    - python3

  cache:
    key: "$CI_BUILD_REF_NAME"
    paths:
      - build

  script:
    - export PIP_CACHE_DIR=$(pwd)/build/pip/
    - pip --quiet install vex
    - vex --python=python3 -m test pip install --quiet -U setuptools wheel pip
    - vex test pip install --quiet -U -r requirements.txt
    - vex test python setup.py -q build install
    - vex test gosu postgres:postgres pytest
    - find build -type f ! -name '*.pickle' ! -wholename 'build/pip/*' -delete && find build -type d -empty -delete
{'fraction_non_alphanumeric': 0.12172682236376504, 'fraction_numerical': 0.0028308563340410475, 'mean_word_length': 2.213636363636364, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5235593', 'n_tokens_mistral': 538, 'n_tokens_neox': 507, 'n_words': 143}