<commit_before>#!/bin/bash
# This script runs the tests on Heroku CI

export DJANGO_SETTINGS_MODULE=config.settings.test

# Enable coveralls parallel mode so we can report for both Python & JS
export COVERALLS_PARALLEL=true
# Coveralls doesn't recognize the Heroku CI environment automatically.
# So let's pretend we're CircleCI.
export CIRCLECI=true
export CIRCLE_BUILD_NUM=$HEROKU_TEST_RUN_ID
export GIT_BRANCH=$HEROKU_TEST_RUN_BRANCH
export GIT_ID=$HEROKU_TEST_RUN_COMMIT_VERSION

# Run Python tests
coverage run $(which pytest) metaci --tap-stream
exit_status=$?
coveralls

# Run JS tests
yarn test:coverage<commit_msg>one more try<commit_after>#!/bin/bash
# This script runs the tests on Heroku CI

# Pretend this is a git repo so that coveralls can find git info
git clone -b "$HEROKU_TEST_RUN_BRANCH" --single-branch https://github.com/SFDO-Tooling/MetaCI MetaCI_checkout 
cd MetaCI_checkout
git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION
cd ..
mv MetaCI_checkout/.git ./
rm -rf MetaCI_checkout

export DJANGO_SETTINGS_MODULE=config.settings.test

# Enable coveralls parallel mode so we can report for both Python & JS
export COVERALLS_PARALLEL=true
# Coveralls doesn't recognize the Heroku CI environment automatically.
# So let's pretend we're CircleCI.
export CIRCLECI=true
export CIRCLE_BUILD_NUM=$HEROKU_TEST_RUN_ID

# Run Python tests
coverage run $(which pytest) metaci --tap-stream
exit_status=$?
coveralls

# Run JS tests
yarn test:coverage
{'fraction_non_alphanumeric': 0.06927297668038408, 'fraction_numerical': 0.0, 'mean_word_length': 5.723502304147465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2790658', 'n_tokens_mistral': 498, 'n_tokens_neox': 481, 'n_words': 153}