<commit_before>#!/bin/bash -xe

export PKG_NAME=$1

echo "deb http://ppa.launchpad.net/symengine/ppa/ubuntu xenial main" >>/etc/apt/sources.list
apt-get update
apt-get install --quiet --assume-yes --no-install-recommends python-symengine python3-symengine

for PY in python2 python3; do
    $PY -c "import symengine"  # make sure symengine is installed
    $PY -m pip install symcxx pysym  # unofficial backends
done

python setup.py sdist
(cd dist/; python -m pip install --force-reinstall $PKG_NAME-*.tar.gz)


for PY in python2 python3; do
    $PY -m pip install --upgrade .[all]
done

PYTHON=python2 ./scripts/run_tests.sh
PYTHON=python3 ./scripts/run_tests.sh --cov $PKG_NAME --cov-report html

./scripts/render_notebooks.sh
(cd $PKG_NAME/tests; jupyter nbconvert --debug --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300 *.ipynb)
python3 -m pip install --user --force-reinstall docutils==0.12  # see https://github.com/sphinx-doc/sphinx/pull/3217
./scripts/generate_docs.sh
<commit_msg>Test against pycvodes@atol-rtol<commit_after>#!/bin/bash -xe

export PKG_NAME=$1

echo "deb http://ppa.launchpad.net/symengine/ppa/ubuntu xenial main" >>/etc/apt/sources.list
apt-get update
apt-get install --quiet --assume-yes --no-install-recommends python-symengine python3-symengine

for PY in python2 python3; do
    $PY -c "import symengine"  # make sure symengine is installed
    $PY -m pip install symcxx pysym  # unofficial backends
    $PY -m pip install git+https://github.com/bjodah/pycvodes@atol-rtol  #DO-NOT-MERGE!
done

python setup.py sdist
(cd dist/; python -m pip install --force-reinstall $PKG_NAME-*.tar.gz)


for PY in python2 python3; do
    $PY -m pip install --upgrade .[all]
done

PYTHON=python2 ./scripts/run_tests.sh
PYTHON=python3 ./scripts/run_tests.sh --cov $PKG_NAME --cov-report html

./scripts/render_notebooks.sh
(cd $PKG_NAME/tests; jupyter nbconvert --debug --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300 *.ipynb)
python3 -m pip install --user --force-reinstall docutils==0.12  # see https://github.com/sphinx-doc/sphinx/pull/3217
./scripts/generate_docs.sh

{'fraction_non_alphanumeric': 0.13175046554934824, 'fraction_numerical': 0.017690875232774673, 'mean_word_length': 3.818385650224215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 3, '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': '7409714', 'n_tokens_mistral': 809, 'n_tokens_neox': 762, 'n_words': 198}